From f4df2d5a4bd23f346af10580e5ab7de64933bb4c Mon Sep 17 00:00:00 2001 From: xachary <179740385@qq.com> Date: Tue, 12 Dec 2023 12:04:03 +0800 Subject: [PATCH] feat: ColumnSetting and SizeSetting persist (#3398) --- .../src/components/settings/ColumnSetting.vue | 703 ++++++++++++------ .../src/components/settings/SizeSetting.vue | 16 +- src/components/Table/src/types/table.ts | 12 + src/enums/cacheEnum.ts | 3 + src/store/modules/tableSetting.ts | 99 +++ src/utils/cache/persistent.ts | 4 +- types/store.d.ts | 7 + 7 files changed, 597 insertions(+), 247 deletions(-) create mode 100644 src/store/modules/tableSetting.ts diff --git a/src/components/Table/src/components/settings/ColumnSetting.vue b/src/components/Table/src/components/settings/ColumnSetting.vue index b767c0bada4..24623f35e43 100644 --- a/src/components/Table/src/components/settings/ColumnSetting.vue +++ b/src/components/Table/src/components/settings/ColumnSetting.vue @@ -6,7 +6,7 @@ @@ -14,25 +14,25 @@
{{ t('component.table.settingColumnShow') }} - + {{ t('component.table.settingIndexColumnShow') }} - + {{ t('component.table.settingSelectColumnShow') }} - + {{ t('common.resetText') }}
@@ -40,12 +40,12 @@