فهرست منبع

还原表格样式

cxmo 1 سال پیش
والد
کامیت
04d28e1433
1فایلهای تغییر یافته به همراه9 افزوده شده و 35 حذف شده
  1. 9 35
      src/views/ppt_manage/newVersion/components/formatEl/SheetEl.vue

+ 9 - 35
src/views/ppt_manage/newVersion/components/formatEl/SheetEl.vue

@@ -12,31 +12,8 @@
           <td v-for="(col,colIndex) in row" 
               :key="colIndex"
               :rowspan="col.mc.rs===0?1:col.mc.rs"
-              :colspan="col.mc.cs===0?1:col.mc.cs"
-              :style="`background: ${col.bg};`"
-              >
-            <div :style="{
-                'color': col.fc,
-                'font-weight': col.bl ? 'bold' : 'normal',
-                'font-style': col.it ? 'italic' : 'normal',
-            }">
-                <div class="split-word" v-if="col.ct.s">
-                    <span v-for="(word,wordIndex) in col.ct.s" :key="`${rowIndex}_${colIndex}_${wordIndex}`"
-                        :style="{
-                            'color': word.fc,
-                            'font-size':word.fs+'px',
-                            'font-weight': word.bl ? 'bold' : 'normal',
-                            'font-style': word.it ? 'italic' : 'normal',
-                            'text-decoration':word.un?'underline':word.cl?'line-through':'normal'
-                        }"
-                    >
-                        {{word.v}}
-                    </span>
-                </div>
-                <div v-else
-                    :style="`text-decoration:${col.un?'underline':col.cl?'line-through':'normal'};`"
-                >{{col.m}}</div>
-            </div>
+              :colspan="col.mc.cs===0?1:col.mc.cs">
+            <div>{{col.m}}</div>
           </td>
         </tr>
       </tbody>
@@ -90,17 +67,14 @@ export default {
 <style scoped lang="scss">
 .table-wrap{
   /* overflow: auto; */
-  width:90% !important;
   table{
     width:100%;
     td{
-        /* min-width: 55px; */
-        white-space: nowrap;
-        border: 1px solid #747474;
-        height: 40px;
-        text-align: center;
-        padding:0 .2rem;
-    }
-}
+			/* 	min-width: 35px; */
+				border: 1px solid #747474;
+				height: 45px;
+				text-align: center;
+			}
+  }
 }
-</style>
+</style>