Browse Source

BI-87649 feat:总行数信息可隐藏

es6
Tangjinxia 3 years ago
parent
commit
2f2676e74e
  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