diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index f51387f0..7d97adf5 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -160,7 +160,7 @@ function handleTableChange(...args) { onChange && isFunction(onChange) && onChange.call(undefined, ...args) } -const { getViewColumns, getColumns, setCacheColumnsByField, setColumns, getColumnsRef, getCacheColumns } = useColumns( +const { getViewColumns, getColumns, setCacheColumnsByField, setCacheColumns, setColumns, getColumnsRef, getCacheColumns } = useColumns( getProps, getPaginationInfo ) @@ -292,7 +292,8 @@ const tableAction: TableActionType = { scrollTo, getSize: () => { return unref(getBindValues).size as SizeType - } + }, + setCacheColumns } createTableContext({ ...tableAction, wrapRef, getBindValues }) diff --git a/src/components/Table/src/components/settings/ColumnSetting.vue b/src/components/Table/src/components/settings/ColumnSetting.vue index 00493a37..6c97eb32 100644 --- a/src/components/Table/src/components/settings/ColumnSetting.vue +++ b/src/components/Table/src/components/settings/ColumnSetting.vue @@ -83,7 +83,7 @@