From d48bf3b3aaf23f6365891913f39e1cea47182665 Mon Sep 17 00:00:00 2001 From: "Wilson.Zhang" Date: Mon, 11 Apr 2022 11:54:33 +0800 Subject: [PATCH] =?UTF-8?q?BI-103548=20fix:=E9=87=8D=E6=96=B0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E6=B7=BB=E5=8A=A0showEllipsis=E4=B8=BAtrue?= =?UTF-8?q?=E4=B8=8D=E5=B1=95=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/pager/pager.js b/src/base/pager/pager.js index 85a926615..c39a9b2ad 100644 --- a/src/base/pager/pager.js +++ b/src/base/pager/pager.js @@ -26,7 +26,7 @@ BI.Pager = BI.inherit(BI.Widget, { }, // 初始化当前页 groups: 0, // 连续显示分页数 jump: BI.emptyFn, // 分页的回调函数 - + showEllipsis: true, first: false, // 是否显示首页 last: false, // 是否显示尾页 prev: "上一页", @@ -98,7 +98,7 @@ BI.Pager = BI.inherit(BI.Widget, { value: "first", disabled: !(dict.index > 1 && groups !== 0) }); - if (dict.index > 1 && groups !== 0 && groups !== pages - 1) { + if (dict.index > 1 && groups !== 0 && o.showEllipsis) { 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 && groups !== pages - 1) { + if (pages > groups && dict.end < pages && groups !== 0 && o.showEllipsis) { view.push({ type: "bi.label", cls: "page-ellipsis",