fix(components): [table] fix grouping head when dynamic column (#16433)

fix(components): [table] fix grouping head when dynamic column (#16417)
This commit is contained in:
Liao-js
2024-04-20 13:51:34 +08:00
committed by GitHub
parent b49b553d83
commit 3386e0af89

View File

@@ -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