Forráskód Böngészése

Merge branch 'bug7843'

shanbinzhang 4 napja
szülő
commit
cdf52a87c2
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      src/components/sheet.vue
  2. 1 1
      src/hooks/sheet/useResizeTable.js

+ 1 - 1
src/components/sheet.vue

@@ -77,7 +77,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')}
           `"
           @mousemove="e =>isCanDrag && handleMouseMove(e,index,cell_index)"
           @mousedown="e =>isCanDrag && handleMouseDown(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')
     }