From 1f6f25bdfb78698fc747022998e65bd28ef7051e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Sun, 23 Oct 2022 16:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/page/index.vue | 5 ++++- .../document-component/src/document/zh-CN/guide/changelog.md | 2 +- package/document-component/src/view/index.vue | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package/component/src/component/page/index.vue b/package/component/src/component/page/index.vue index e430342a..45b41bec 100644 --- a/package/component/src/component/page/index.vue +++ b/package/component/src/component/page/index.vue @@ -63,7 +63,10 @@ const totalPage = computed(() => { maxPage.value <= props.pages ? 1 : currentPage.value > pages - ? maxPage.value - currentPage.value + 1 < pages ? currentPage.value - (pages + (pages - (maxPage.value - currentPage.value + 1))) : currentPage.value - pages + ? maxPage.value - currentPage.value + 1 < pages + ? currentPage.value - + (pages + (pages - (maxPage.value - currentPage.value + 1))) + : currentPage.value - pages : 1; for (let i = start; ; i++) { diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md index 915e81b9..0ea66c69 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -32,11 +32,11 @@