From 02e686c76b4863808b1222fec573ec51278a309a Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Thu, 3 Aug 2023 19:20:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A8=E6=A0=BC=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=8D=E7=A7=B0=E6=9B=B4=E6=94=B9=E5=92=8C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/src/assets/style/arco-reset.less | 16 +-- .../pure/ms-pagination/page-jumper.vue | 2 +- .../components/pure/ms-table/base-table.vue | 106 +++++++++++++----- .../components/pure/ms-table/locale/en-US.ts | 5 + .../components/pure/ms-table/locale/zh-CN.ts | 5 + frontend/src/components/pure/ms-table/type.ts | 17 +++ .../src/components/pure/ms-table/useTable.ts | 19 +++- .../system/usergroup/components/userTable.vue | 1 + 9 files changed, 135 insertions(+), 38 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index ac7c069ba7..df1a891317 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.49.2", - "@arco-themes/vue-ms-theme-default": "^0.0.24", + "@arco-themes/vue-ms-theme-default": "^0.0.25", "@form-create/arco-design": "^3.1.21", "@vueuse/core": "^10.2.1", "ace-builds": "^1.22.0", diff --git a/frontend/src/assets/style/arco-reset.less b/frontend/src/assets/style/arco-reset.less index f06b6f5a5f..1b61a1d7b0 100644 --- a/frontend/src/assets/style/arco-reset.less +++ b/frontend/src/assets/style/arco-reset.less @@ -507,14 +507,14 @@ .arco-pagination-jumper { padding: 2px 8px; background: var(--color-text-n9); -} -.arco-pagination-jumper-input { - padding: 3px 8px; - width: 57px; - height: 28px; - border: 1px solid var(--color-text-input-border); - border-radius: 3px; - box-sizing: border-box; + .arco-pagination-jumper-input { + padding: 3px 8px; + width: 57px; + height: 28px; + border: 1px solid var(--color-text-input-border); + border-radius: 3px; + box-sizing: border-box; + } } .arco-pagination-jumper-total-page { margin-right: 0; diff --git a/frontend/src/components/pure/ms-pagination/page-jumper.vue b/frontend/src/components/pure/ms-pagination/page-jumper.vue index b3a0865795..aa27022751 100644 --- a/frontend/src/components/pure/ms-pagination/page-jumper.vue +++ b/frontend/src/components/pure/ms-pagination/page-jumper.vue @@ -28,7 +28,7 @@ export interface PageJumperProps { current: number; - simple: boolean; + simple?: boolean; disabled: boolean; pages: number; size?: 'small' | 'mini' | 'medium' | 'large'; diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index e60dfa687b..d5b3fc8d10 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -43,13 +43,45 @@
{{ t(item.title as string) }}
-