Skip to content

Commit

Permalink
fix(components): [table] fix grouping head when dynamic column (eleme…
Browse files Browse the repository at this point in the history
  • Loading branch information
Liao-js committed Apr 9, 2024
1 parent 111086c commit 042294f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/components/table/src/table-column/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ export default defineComponent({
)
})
onBeforeUnmount(() => {
owner.value.store.commit(
'removeColumn',
columnConfig.value,
isSubColumn.value ? parent.columnConfig.value : null,
updateColumnOrder
)
const columnIndex = columnConfig.value.getColumnIndex()
columnIndex > -1 &&
owner.value.store.commit(
'removeColumn',
columnConfig.value,
isSubColumn.value ? parent.columnConfig.value : null,
updateColumnOrder
)
})
instance.columnId = columnId.value

Expand Down

0 comments on commit 042294f

Please sign in to comment.