Explorar o código

表格预览大小

natasha hai 1 mes
pai
achega
710e68b128

+ 1 - 1
src/views/book/courseware/create/components/question/table/Table.vue

@@ -319,7 +319,6 @@ export default {
       loading: false,
       optionWordDataMap: {},
       optionWordDataSourceMap: {},
-      loading: false,
       inited: false,
     };
   },
@@ -521,6 +520,7 @@ export default {
           return;
         }
       }
+      this.loading = true;
       try {
         if (!this.isEnable(this.data.property.view_pinyin)) {
           this.data.option_list.forEach((row) => {

+ 7 - 1
src/views/book/courseware/preview/components/table/TablePreview.vue

@@ -892,7 +892,13 @@ export default {
         .map((tagItem) => tagItem.style)
         .join(';');
 
-      const styleObj = combinedStyle ? this.parseStyleToObject(combinedStyle) : null;
+      const styleObj = combinedStyle
+        ? this.parseStyleToObject(combinedStyle)
+        : {
+            fontSize:
+              this.data.unified_attrib && this.data.unified_attrib.font_size ? this.data.unified_attrib.font_size : '',
+            fontFamily: this.data.unified_attrib && this.data.unified_attrib.font ? this.data.unified_attrib.font : '',
+          };
 
       return {
         type: 'text',