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