From 7116a29f349dbaa715833d0371e3f338341674a9 Mon Sep 17 00:00:00 2001 From: "Wilson.Zhang" Date: Mon, 11 Apr 2022 20:45:49 +0800 Subject: [PATCH] =?UTF-8?q?BI-103548=20fix:=20groups=E4=B8=BApage-1?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D=E5=BA=94=E8=AF=A5=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=9C=81=E7=95=A5=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/pager/pager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/pager/pager.js b/src/base/pager/pager.js index 15e3fe44f..9b4c08682 100644 --- a/src/base/pager/pager.js +++ b/src/base/pager/pager.js @@ -97,7 +97,7 @@ BI.Pager = BI.inherit(BI.Widget, { value: "first", disabled: !(dict.index > 1 && groups !== 0) }); - if (dict.index > 1 && groups !== 0) { + if (dict.index > 1 && groups !== 0 && groups !== pages - 1) { view.push({ type: "bi.label", cls: "page-ellipsis", @@ -139,7 +139,7 @@ BI.Pager = BI.inherit(BI.Widget, { // 总页数大于连续分页数,且当前组最大页小于总页,输出尾页 if (((!o.dynamicShow && !o.dynamicShowFirstLast) || (pages > groups && dict.end < pages && groups !== 0)) && last) { - if (pages > groups && dict.end < pages && groups !== 0) { + if (pages > groups && dict.end < pages && groups !== 0 && groups !== pages - 1) { view.push({ type: "bi.label", cls: "page-ellipsis",