From 5e170ed1465a36f7857cf730719396b0aea3927f Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 24 May 2024 16:46:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=20=20=E9=83=A8=E5=88=86=20bug=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/style/arco-reset.less | 91 ------------------- .../business/ms-case-associate/index.vue | 12 ++- .../components/pure/ms-description/index.vue | 75 +++++++++++---- .../src/components/pure/ms-drawer/index.vue | 13 ++- .../pure/ms-pagination/pagination.tsx | 36 ++++++-- .../components/pure/ms-pagination/style.less | 89 ++++++++++++++++++ .../src/components/pure/ms-table/useTable.ts | 3 +- .../src/components/pure/ms-tag/ms-tag.vue | 12 ++- .../components/management/api/index.vue | 2 + .../components/management/case/caseTable.vue | 3 +- .../components/management/mock/mockTable.vue | 31 +++---- .../components/common/quoteCsvDrawer.vue | 8 +- .../scenario/components/step/stepTree.vue | 1 + .../views/api-test/scenario/locale/en-US.ts | 1 + .../views/api-test/scenario/locale/zh-CN.ts | 1 + .../tabContent/tabBug/linkDefectDrawer.vue | 10 +- .../case-management/caseReview/caseDetail.vue | 3 +- .../test-plan/report/component/reportList.vue | 6 +- .../testPlan/createAndEditPlanDrawer.vue | 52 +++++++++++ .../detail/featureCase/detail/index.vue | 6 +- 20 files changed, 301 insertions(+), 154 deletions(-) create mode 100644 frontend/src/components/pure/ms-pagination/style.less diff --git a/frontend/src/assets/style/arco-reset.less b/frontend/src/assets/style/arco-reset.less index 77cc10a554..67c55d0ea7 100644 --- a/frontend/src/assets/style/arco-reset.less +++ b/frontend/src/assets/style/arco-reset.less @@ -765,97 +765,6 @@ } } -/** 分页 **/ -.ms-pagination { - display: flex; - justify-content: flex-end; - align-items: center; - gap: 16px; - &-list { - display: flex; - flex-direction: row; - gap: 8px; - } - &-jumper { - display: flex; - align-items: center; - padding: 2px 8px; - border-radius: var(--border-radius-small); - background: var(--color-text-n9); - gap: 8px; - .ms-pagination-jumper-input { - padding: 3px 8px; - width: 57px; - border: 1px solid var(--color-text-input-border); - border-radius: var(--border-radius-small); - color: var(--color-text-1); - background: var(--color-text-10); - box-sizing: border-box; - input { - padding-top: 0 !important; - padding-bottom: 0 !important; - height: 22px; - text-align: center; - } - } - &-text-goto, - &-total-page { - color: var(--color-text-2); - } - } - &-total { - color: var(--color-text-2); - } - &-options { - margin-left: 14px; - } - &-item { - display: flex; - justify-content: center; - align-items: center; - padding: 5px 10px; - min-width: 32px; - height: 32px; - box-sizing: border-box; - cursor: pointer; - &-previous { - margin-left: 14px; - } - &-ellipsis { - padding: 5px 0; - } - &-ellipsis:hover { - min-width: 32px; - height: 32px; - } - &:not(:last-child):not(:first-child):not(.arco-pagination-item-ellipsis) { - border: 1px solid var(--color-text-input-border); - border-radius: 3px; - } - &-active { - border-color: rgb(var(--primary-5)) !important; - color: rgb(var(--primary-5)) !important; - background-color: rgb(var(--primary-1)) !important; - } - } - &-simple { - &-jumper { - display: flex; - align-items: center; - } - } - &-size-mini { - font-size: 12px; - line-height: 16px; - .ms-pagination-item { - height: 24px; - } - .ms-pagination-jumper-input { - padding: 0; - } - } -} - /** 折叠面板样式 **/ .arco-collapse { padding: 0; diff --git a/frontend/src/components/business/ms-case-associate/index.vue b/frontend/src/components/business/ms-case-associate/index.vue index 8f3fa71a60..a454416ca3 100644 --- a/frontend/src/components/business/ms-case-associate/index.vue +++ b/frontend/src/components/business/ms-case-associate/index.vue @@ -125,7 +125,16 @@ - +