|
|
@ -123,8 +123,7 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
isNeedAdjustWidth: o.isNeedAdjustWidth, |
|
|
|
isNeedAdjustWidth: o.isNeedAdjustWidth, |
|
|
|
value: { value: o.value || {} }, |
|
|
|
value: { value: o.value || {} }, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && |
|
|
|
return self.numberCounter.element.find(e.target).length === 0; |
|
|
|
self.numberCounter.element.find(e.target).length === 0; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -223,21 +222,6 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
change = false; |
|
|
|
change = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
var triggerBtn = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.trigger_icon_button", |
|
|
|
|
|
|
|
width: o.height, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
cls: "multi-select-trigger-icon-button" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
triggerBtn.on(BI.TriggerIconButton.EVENT_CHANGE, function () { |
|
|
|
|
|
|
|
self.numberCounter.hideView(); |
|
|
|
|
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
|
|
|
self.combo.hideView(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
self.combo.showView(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.numberCounter = BI.createWidget({ |
|
|
|
this.numberCounter = BI.createWidget({ |
|
|
|
type: "bi.multi_select_check_selected_switcher", |
|
|
|
type: "bi.multi_select_check_selected_switcher", |
|
|
|
el: { |
|
|
|
el: { |
|
|
@ -300,11 +284,6 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
right: 0, |
|
|
|
right: 0, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
|
bottom: 0 |
|
|
|
bottom: 0 |
|
|
|
}, { |
|
|
|
|
|
|
|
el: triggerBtn, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: "bi.vertical_adapt", |
|
|
|