Skip to content

Commit 60c0170

Browse files
author
黄书伟
committed
修复 table 组件自适应无滚动条的情况切换到小屏幕,有滚动条时,列没有自适应的bug
1 parent 02fbfc6 commit 60c0170

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/v-table/src/table-resize-mixin.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ export default {
186186

187187
return item;
188188
})
189+
}else{ // 最小化有滚动条时
190+
191+
this.columns.forEach((col,index)=>{
192+
193+
194+
if (col.isResize){
195+
196+
this.internalColumns[index].width = col.width;
197+
}
198+
199+
})
189200
}
190201
},
191202

0 commit comments

Comments
 (0)