Browse Source

Pull request #1952: BI-87649 feat:总行数信息可隐藏

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit 'daca6b6ca18306cd6edd28b10ebf78df8b260ad6':
  BI-87649 feat:总行数信息可隐藏
es6
Claire.Tang 3 years ago
parent
commit
d5e1916e7f
  1. 7
      src/case/pager/pager.all.count.js
  2. 2
      typescript/case/pager/pager.all.count.ts

7
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);

2
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;
}

Loading…
Cancel
Save