From 75f5b7ac4dda840ce0098ed528e0b161d99d9b09 Mon Sep 17 00:00:00 2001 From: xachary <179740385@qq.com> Date: Mon, 25 Dec 2023 11:29:58 +0800 Subject: [PATCH] fix(BasicTable): index still show when set showIndexColumn false (#3455) --- src/components/Table/src/components/settings/ColumnSetting.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Table/src/components/settings/ColumnSetting.vue b/src/components/Table/src/components/settings/ColumnSetting.vue index 91c0d138..945bdbfe 100644 --- a/src/components/Table/src/components/settings/ColumnSetting.vue +++ b/src/components/Table/src/components/settings/ColumnSetting.vue @@ -445,12 +445,11 @@ const restore = () => { // 设置过才恢复 if (typeof tableSettingStore.getShowIndexColumn === 'boolean') { - isIndexColumnShow.value = tableSettingStore.getShowIndexColumn; + isIndexColumnShow.value = defaultIsIndexColumnShow && tableSettingStore.getShowIndexColumn; } if (typeof tableSettingStore.getShowRowSelection === 'boolean') { isRowSelectionShow.value = defaultIsRowSelectionShow && tableSettingStore.getShowRowSelection; } - // 序号列更新 onIndexColumnShowChange({ target: { checked: isIndexColumnShow.value },