|
|
|
@ -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)); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|