Jelajahi Sumber

课文编辑时显示样式

natasha 1 hari lalu
induk
melakukan
a27c9bfb15

+ 11 - 1
src/views/book/courseware/create/components/question/article/Article.vue

@@ -71,7 +71,17 @@
                     ? wItem.pinyin_up
                     : wItem.pinyin
                 }}</span>
-                <span class="word">{{ wItem.chs }}</span>
+                <span
+                  class="word"
+                  :style="{
+                    fontFamily: wItem.fontFamily,
+                    textDecoration: wItem.textDecoration,
+                    borderBottom: wItem.border === 'dotted' ? '1px dotted' : '',
+                    fontWeight: wItem.fontWeight,
+                    color: wItem.color,
+                  }"
+                  >{{ wItem.chs }}</span
+                >
               </div>
             </template>
           </div>

+ 11 - 1
src/views/book/courseware/create/components/question/dialogue_article/Article.vue

@@ -92,7 +92,17 @@
                           ? wItem.pinyin_up
                           : wItem.pinyin
                       }}</span>
-                      <span class="word">{{ wItem.chs }}</span>
+                      <span
+                        class="word"
+                        :style="{
+                          fontFamily: wItem.fontFamily,
+                          textDecoration: wItem.textDecoration,
+                          borderBottom: wItem.border === 'dotted' ? '1px dotted' : '',
+                          fontWeight: wItem.fontWeight,
+                          color: wItem.color,
+                        }"
+                        >{{ wItem.chs }}</span
+                      >
                     </div>
                   </template>
                 </template>