Browse Source

CHART-19948 fix:部分选中时显示半选按钮

es6
Tangjinxia 3 years ago
parent
commit
5cd0ac1f89
  1. 3
      src/case/toolbar/toolbar.multiselect.js

3
src/case/toolbar/toolbar.multiselect.js

@ -90,7 +90,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
_setSelected: function (v) {
this.checkbox.setSelected(!!v);
this.setHalfSelected(!v);
},
// 自己手动控制选中
@ -131,7 +130,7 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
setValue: function (selectedValues) {
BI.MultiSelectBar.superclass.setValue.apply(this, arguments);
var isAllChecked = this.options.isAllCheckedBySelectedValue.apply(this, arguments);
this._setSelected(isAllChecked);
this.setSelected(isAllChecked);
!isAllChecked && this.setHalfSelected(this.options.isHalfCheckedBySelectedValue.apply(this, arguments));
},

Loading…
Cancel
Save