From 5371ae9116fcbcab0baa6b230d1b13c875a62eb3 Mon Sep 17 00:00:00 2001 From: "Wilson.Zhang" Date: Mon, 11 Apr 2022 11:02:11 +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=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 6b78a8d02..85a926615 100644 --- a/src/base/pager/pager.js +++ b/src/base/pager/pager.js @@ -98,7 +98,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", @@ -140,7 +140,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",