Browse Source

Merge branch 'bug7843' into debug

shanbinzhang 2 weeks ago
parent
commit
8a3aeaf6b6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/components/sheet.vue
  2. 1 1
      src/hooks/sheet/useResizeTable.js

+ 1 - 1
src/components/sheet.vue

@@ -84,7 +84,7 @@ initTableCellsWid('init',props.sceneConfig)
             background: ${cell.bg};
             text-align: ${HtObj[cell.HorizontalType]};
             font-size: ${cell.fs||props.config.FontSize||12}px;
-            width:${index==0?getSize(cell_index,'width'):'auto'};
+            width:${getSize(cell_index,'width')};
             ${cell.ct.s ? '' : `font-family: ${handleFF(cell.ff)};`}
           `"
           @mousemove="e =>isCanDrag && handleMouseMove(e,index,cell_index)"

+ 1 - 1
src/hooks/sheet/useResizeTable.js

@@ -198,7 +198,7 @@ export function useResizeTable(refName) {
 
   function getSize(index,type) {
     if(type==='width'){
-      return isMobile() ?  MobileCellWID : (columnsWArr.value[index]?`${columnsWArr.value[index]}px`:'')
+      return isMobile() ?  MobileCellWID : (columnsWArr.value[index]?`${columnsWArr.value[index]}px`:'auto')
     }else{
       return isMobile() ? MobileCellH : (rowsHArr.value[index]?`${rowsHArr.value[index]}px`:'20px')
     }