|
|
@ -123,7 +123,8 @@ 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 self.numberCounter.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && |
|
|
|
|
|
|
|
self.numberCounter.element.find(e.target).length === 0; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -222,6 +223,21 @@ 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: { |
|
|
@ -284,6 +300,11 @@ 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", |
|
|
|