From 61bae0ec146762943c989e7d8f7b84b66dbd78c5 Mon Sep 17 00:00:00 2001 From: rubyliu Date: Wed, 19 Jul 2023 22:58:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20table=E5=88=97=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/src/App.vue | 7 +- frontend/src/assets/style/arco-reset.less | 8 + .../components/pure/ms-table/base-table.vue | 51 ++++- .../pure/ms-table/columnSelector.vue | 176 ++++++++++++++++++ .../components/pure/ms-table/edit-table.vue | 0 .../components/pure/ms-table/locale/en-US.ts | 9 + .../components/pure/ms-table/locale/zh-CN.ts | 9 + frontend/src/components/pure/ms-table/type.ts | 18 +- .../src/components/pure/ms-table/useTable.ts | 11 ++ frontend/src/enums/tableEnum.ts | 11 ++ frontend/src/store/index.ts | 4 +- frontend/src/store/modules/app/types.ts | 1 + frontend/src/store/modules/ms-table/index.ts | 58 ++++++ .../module/setting/system/usergroup.ts | 31 +++ frontend/src/store/modules/ms-table/types.ts | 13 ++ .../src/views/login/components/banner.vue | 3 +- .../system/usergroup/components/authTable.vue | 2 +- .../system/usergroup/components/userTable.vue | 32 +--- .../setting/system/usergroup/locale/en-US.ts | 12 +- .../setting/system/usergroup/locale/zh-CN.ts | 8 + 21 files changed, 419 insertions(+), 47 deletions(-) create mode 100644 frontend/src/components/pure/ms-table/columnSelector.vue delete mode 100644 frontend/src/components/pure/ms-table/edit-table.vue create mode 100644 frontend/src/enums/tableEnum.ts create mode 100644 frontend/src/store/modules/ms-table/index.ts create mode 100644 frontend/src/store/modules/ms-table/module/setting/system/usergroup.ts create mode 100644 frontend/src/store/modules/ms-table/types.ts diff --git a/frontend/package.json b/frontend/package.json index 5aaa70ed0e..c4a9ce7758 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -37,7 +37,7 @@ "@7polo/kity": "2.0.8", "@7polo/kityminder-core": "1.4.53", "@arco-design/web-vue": "^2.48.0", - "@arco-themes/vue-ms-theme-default": "^0.0.17", + "@arco-themes/vue-ms-theme-default": "^0.0.19", "@form-create/arco-design": "^3.1.21", "@vueuse/core": "^9.13.0", "ace-builds": "^1.22.0", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 01e71a01ae..d16d57bf71 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -6,13 +6,15 @@ diff --git a/frontend/src/assets/style/arco-reset.less b/frontend/src/assets/style/arco-reset.less index 1c5173e4a9..5daef7b711 100644 --- a/frontend/src/assets/style/arco-reset.less +++ b/frontend/src/assets/style/arco-reset.less @@ -464,3 +464,11 @@ background-color: var(--color-text-input-border); } } + +/** 开关 **/ +.arco-switch { + background: var(--color-fill-4); +} +.arco-switch-checked { + background: rgb(var(--primary-6)) !important; +} diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index 26e910f4e2..72cdc1ad7c 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -14,7 +14,15 @@ @selection-change="(e) => selectionChange(e, true)" >