Skip to content

Commit 28016cb

Browse files
authored
fix(grid): [grid] fix viewType change table column width error (#3273)
1 parent 69d08cc commit 28016cb

File tree

1 file changed

+2
-2
lines changed
  • packages/vue/src/grid/src/grid

1 file changed

+2
-2
lines changed

packages/vue/src/grid/src/grid/grid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ export default defineComponent({
215215
setTimeout(() => this.emitter.emit('active-anchor'), this.columnAnchorParams.activeAnchor.delay)
216216
},
217217
viewType(value) {
218-
// 在全屏状态下切换到表格视图时额外刷新一次表格布局,解决此场景下列宽未自动撑开问题
219-
if (value === V_MF && this.fullScreenClass) {
218+
// 解决从卡片、列表视图切换至表格视图后,列宽未自动撑开问题
219+
if (value === V_MF) {
220220
this.$nextTick(() => this.recalculate(true))
221221
}
222222
}

0 commit comments

Comments
 (0)