From d6949aabd50bc5765d6d0cfbacb22d49df4a8cea Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Tue, 1 Aug 2023 18:48:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E9=A1=B5=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=9B=86=E6=88=90=E5=88=B0=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/style/arco-reset.less | 44 ++++++++++++++ .../pure/ms-pagination/locale/en-US.ts | 6 +- .../pure/ms-pagination/locale/zh-CN.ts | 4 +- .../pure/ms-pagination/page-jumper.vue | 16 ++--- .../components/pure/ms-table/base-table.vue | 39 +++++++++++- frontend/src/components/pure/ms-table/type.ts | 11 +++- .../src/components/pure/ms-table/useTable.ts | 60 +++++++++++-------- frontend/src/config/settings.json | 5 +- frontend/src/store/modules/app/types.ts | 4 ++ frontend/src/views/bug-management/index.vue | 30 ++-------- .../views/setting/system/usergroup/index.vue | 55 +++++++++-------- 11 files changed, 173 insertions(+), 101 deletions(-) diff --git a/frontend/src/assets/style/arco-reset.less b/frontend/src/assets/style/arco-reset.less index 24be577520..1410e30e56 100644 --- a/frontend/src/assets/style/arco-reset.less +++ b/frontend/src/assets/style/arco-reset.less @@ -491,6 +491,36 @@ } /** 分页 **/ +.arco-pagination { + display: flex; + justify-content: flex-end; + align-items: center; + gap: 16px; +} +.arco-pagination-list { + display: flex; + flex-direction: row; +} +.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-total-page { + margin-right: 0; + margin-left: 8px; + color: var(--color-text-2); +} +.arco-pagination-simple .arco-pagination-jumper .arco-pagination-jumper-input { + width: 57px; +} .arco-pagination-total { color: var(--color-text-2) !important; } @@ -504,6 +534,20 @@ margin-left: 14px !important; } .arco-pagination-size-small .arco-pagination-item { + display: flex; + justify-content: center; + align-items: center; + padding: 5px 0; + width: 32px; + height: 32px; + box-sizing: border-box; +} +.arco-pagination-item-ellipsis:hover { + width: 32px; + height: 32px; +} +.arco-pagination-size-small + .arco-pagination-item:not(:last-child):not(:first-child):not(.arco-pagination-item-ellipsis) { border: 1px solid var(--color-text-input-border); } .arco-pagination-item-active { diff --git a/frontend/src/components/pure/ms-pagination/locale/en-US.ts b/frontend/src/components/pure/ms-pagination/locale/en-US.ts index af672074b9..7f8d47a386 100644 --- a/frontend/src/components/pure/ms-pagination/locale/en-US.ts +++ b/frontend/src/components/pure/ms-pagination/locale/en-US.ts @@ -1,10 +1,10 @@ export default { msPagination: { total: 'A total of {total} items', - current: 'Current {current}', + current: 'Current page {current}', + countPerPage: 'items/page', pageSize: 'Page size', goto: 'Goto', - page: 'Page', - countPerPage: ' / Page', + page: '/{page} pages', }, }; diff --git a/frontend/src/components/pure/ms-pagination/locale/zh-CN.ts b/frontend/src/components/pure/ms-pagination/locale/zh-CN.ts index 9eba5eb25b..f775a2a8c0 100644 --- a/frontend/src/components/pure/ms-pagination/locale/zh-CN.ts +++ b/frontend/src/components/pure/ms-pagination/locale/zh-CN.ts @@ -4,7 +4,7 @@ export default { current: '当前页数 {current}', countPerPage: '条/页', pageSize: '每页条数', - goto: '前往', - page: '页', + goto: '跳至', + page: '/{page} 页', }, }; diff --git a/frontend/src/components/pure/ms-pagination/page-jumper.vue b/frontend/src/components/pure/ms-pagination/page-jumper.vue index e3c530752e..b3a0865795 100644 --- a/frontend/src/components/pure/ms-pagination/page-jumper.vue +++ b/frontend/src/components/pure/ms-pagination/page-jumper.vue @@ -1,6 +1,6 @@ - - diff --git a/frontend/src/views/setting/system/usergroup/index.vue b/frontend/src/views/setting/system/usergroup/index.vue index 244fa729db..1bad2aaeac 100644 --- a/frontend/src/views/setting/system/usergroup/index.vue +++ b/frontend/src/views/setting/system/usergroup/index.vue @@ -1,44 +1,47 @@