From 2f2676e74eaf9db624d4e5e2ca8a2109d5257b44 Mon Sep 17 00:00:00 2001 From: Tangjinxia <1119518763@qq.com> Date: Fri, 4 Jun 2021 14:25:40 +0800 Subject: [PATCH] =?UTF-8?q?BI-87649=20feat:=E6=80=BB=E8=A1=8C=E6=95=B0?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8F=AF=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/pager/pager.all.count.js | 7 +++++++ typescript/case/pager/pager.all.count.ts | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/case/pager/pager.all.count.js b/src/case/pager/pager.all.count.js index 859404904..504fd8411 100644 --- a/src/case/pager/pager.all.count.js +++ b/src/case/pager/pager.all.count.js @@ -134,6 +134,9 @@ BI.AllCountPager = BI.inherit(BI.Widget, { type: "bi.left", height: o.height, scrollable: false, + ref: function (_ref) { + self.rowCountObject = _ref; + }, items: [{ type: "bi.label", height: o.height, @@ -209,6 +212,10 @@ BI.AllCountPager = BI.inherit(BI.Widget, { this.pager.setVisible(b); }, + setRowCountVisible: function (b) { + this.rowCountObject.setVisible(b); + }, + populate: function () { this.pager.populate(); this.setPagerVisible(this.options.pages > 1); diff --git a/typescript/case/pager/pager.all.count.ts b/typescript/case/pager/pager.all.count.ts index 1e772cd50..77b7e43f7 100644 --- a/typescript/case/pager/pager.all.count.ts +++ b/typescript/case/pager/pager.all.count.ts @@ -22,5 +22,7 @@ export declare class AllCountPager extends Widget { setPagerVisible(v: boolean): void; + setRowCountVisible(v: boolean): void; + populate(): void; }