fix(BasicTable): index still show when set showIndexColumn false (#3455)

This commit is contained in:
xachary 2023-12-25 11:29:58 +08:00 committed by GitHub
parent d6d1120d00
commit 75f5b7ac4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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 },