Преглед на файлове

fix: eta_com表格行列

shanbinzhang преди 3 седмици
родител
ревизия
cd03bc40d4
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/CustomElement/EtaTable.ce.vue

+ 2 - 2
src/CustomElement/EtaTable.ce.vue

@@ -58,9 +58,9 @@ function getSizeStyle(index,type) {
             rowsHArr = HeightList.split(',').map(_ =>Number(_));
         
         if(type === 'height') {
-            return rowsHArr[index]?`height:${rowsHArr[index]}px`:'';
+            return rowsHArr[index]?`height:${rowsHArr[index]}px`:'heigth:auto';
         }else {
-            return columnsWArr[index]?`width:${columnsWArr[index]}px`:''
+            return columnsWArr[index]?`width:${columnsWArr[index]}px`:'width:auto'
         }
 
     }else {