Browse Source

BI-73934 allPageCounter支持自定义显示总行数

master
windy 4 years ago
parent
commit
f1089bafa5
  1. 1
      changelog.md
  2. 20
      src/case/pager/pager.all.count.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-09)
- allCountPager支持是否显示总行数
- 修复区间滑块setEnable(false)滑块不灰化的问题
- 修复同步复选下拉框系列setValue所有值后触发器不显示全选的问题
- BI.Tree.traversal方法迭代函数增加父节点参数

20
src/case/pager/pager.all.count.js

@ -11,7 +11,8 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
height: 24,
pages: 1, // 必选项
curr: 1, // 初始化当前页, pages为数字时可用,
count: 1 // 总行数
count: 1, // 总行数
showRowCount: true
});
},
_init: function () {
@ -101,7 +102,11 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
title: o.count
});
var count = BI.createWidget({
BI.createWidget(o.showRowCount ? {
type: "bi.left_right_vertical_adapt",
element: this,
items: {
left: [{
type: "bi.left",
height: o.height,
scrollable: false,
@ -117,14 +122,13 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
width: 50,
textAlign: "left"
}]
});
BI.createWidget({
type: "bi.left_right_vertical_adapt",
element: this,
items: {
left: [count],
}],
right: [this.editor, this.allPages, this.pager]
}
} : {
type: "bi.vertical_adapt",
element: this,
items: [this.editor, this.allPages, this.pager]
});
},

Loading…
Cancel
Save