Browse Source

Pull request #1893: BI-85536 feat:全选按钮支持传入图标宽高

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

* commit '018d0e1e8ab64cc31d9f2b3c66fe22a9a161744c':
  BI-85536 feat:全选按钮支持传入图标宽高
es6
Claire.Tang 4 years ago
parent
commit
703c11f6eb
  1. 12
      src/case/toolbar/toolbar.multiselect.js

12
src/case/toolbar/toolbar.multiselect.js

@ -18,7 +18,9 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
return selectedValues.length > 0;
},
halfSelected: false,
iconWrapperWidth: 26
iconWrapperWidth: 26,
iconWidth: 16,
iconHeight: 16,
});
},
_init: function () {
@ -33,7 +35,9 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
self.setSelected(self.isSelected());
},
selected: isSelect,
invisible: isHalfSelect
invisible: isHalfSelect,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
this.half = BI.createWidget({
type: "bi.half_icon_button",
@ -41,7 +45,9 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
handler: function () {
self.setSelected(true);
},
invisible: isSelect || !isHalfSelect
invisible: isSelect || !isHalfSelect,
iconWidth: o.iconWidth,
iconHeight: o.iconHeight
});
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);

Loading…
Cancel
Save