From b85758912aef65e91379568c48e1310873c0d4ca Mon Sep 17 00:00:00 2001 From: justwiner <30335393+justwiner@users.noreply.github.com> Date: Wed, 20 Jan 2021 15:28:34 +0800 Subject: [PATCH] fix(table): fix bug of table-column property watching (#1309) --- packages/table/src/table-column/watcher-helper.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/table/src/table-column/watcher-helper.ts b/packages/table/src/table-column/watcher-helper.ts index b9db3879b8..46cdd1477f 100644 --- a/packages/table/src/table-column/watcher-helper.ts +++ b/packages/table/src/table-column/watcher-helper.ts @@ -21,6 +21,7 @@ function useWatcher(owner: ComputedRef, props_: TableColumnCtx) { () => props_[columnKey], newVal => { instance.columnConfig.value[columnKey] = newVal + instance.columnConfig.value[key] = newVal const updateColumns = columnKey === 'fixed' owner.value.store.scheduleLayout(updateColumns) },