mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user