Browse Source
fix(BasicTable): index still show when set showIndexColumn false (#3455)
pull/3458/head
xachary
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
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 }, |
|
|
|
|