fix(table): fix bug of table-column property watching (#1309)

This commit is contained in:
justwiner 2021-01-20 15:28:34 +08:00 committed by GitHub
parent 45dbdf6e26
commit b85758912a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ function useWatcher(owner: ComputedRef<any>, props_: TableColumnCtx) {
() => props_[columnKey],
newVal => {
instance.columnConfig.value[columnKey] = newVal
instance.columnConfig.value[key] = newVal
const updateColumns = columnKey === 'fixed'
owner.value.store.scheduleLayout(updateColumns)
},