Browse Source

表格背景色

natasha 1 month ago
parent
commit
4d40645f8a

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

@@ -46,6 +46,8 @@
                       : j === 0
                         ? data.property.first_column_color
                         : '',
+
+                  backgroundColor: data.mode === 'short' ? data.styles.bgColor : '',
                 }"
               >
                 <div :style="[tdStyle]" class="cell-wrap">
@@ -247,7 +249,6 @@ export default {
           fontFamily: styles.fontFamily,
           fontSize: styles.fontSize,
           fontColor: styles.fontColor,
-          backgroundColor: styles.bgColor,
           textDecoration: styles.isUnderline ? 'underline' : styles.isStrikethrough ? 'line-through' : '',
           fontWeight: styles.isBold ? 'bold' : '',
           fontStyle: styles.isItalic ? 'italic' : '',