Explorar o código

注释标题颜色

natasha hai 1 semana
pai
achega
48c856ec6a

+ 14 - 4
src/views/book/courseware/preview/components/notes/NotesPreview.vue

@@ -11,7 +11,15 @@
           }" -->
         <div class="topTitle-note" v-if="data.title_con">
           <div class="NPC-top-left">
-            <span class="NPC-topTitle-text" v-html="data.title_con"></span>
+            <span
+              class="NPC-topTitle-text"
+              v-html="data.title_con"
+              :style="{
+                color:
+                  data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '#de4444',
+                fontSize: data.unified_attrib && data.unified_attrib.font_size ? data.unified_attrib.font_size : '',
+              }"
+            ></span>
             <span v-if="showLang" class="NPC-topTitle-text">
               {{ titleTrans[getLang()] }}
             </span>
@@ -243,11 +251,13 @@ export default {
         justify-content: flex-start;
 
         .NPC-topTitle-text {
-          margin: 0 8px 0 0;
-          font-family: 'sourceR';
+          // margin: 0 8px 0 0;
+
+          // font-family: 'sourceR';
           font-size: 16px;
           font-weight: bold;
-          color: #fff;
+
+          // color: #fff;
         }
       }