Browse Source

可配置表格居中

natasha 2 years ago
parent
commit
5b78317b5a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/components/Adult/preview/ConfigurableTable.vue

+ 5 - 1
src/components/Adult/preview/ConfigurableTable.vue

@@ -72,7 +72,11 @@
               ]"
               :style="{ 'background-color': `${col.background}` }"
             >
-              <div class="cell-wrap">
+              <div class="cell-wrap" 
+                :style="{
+                    'justify-content': curQue.textAlign=='center'?`${curQue.textAlign}`:'space-between',
+                }"
+              >
                 <template v-if="col.type === 'content'">
                   <span v-if="col.text.length > 0" class="content">
                     {{ col.text }}