|
|
|
@ -72595,31 +72595,19 @@ BI.shortcut("bi.half_icon_button", BI.HalfIconButton);/**
|
|
|
|
|
* Created by GUY on 2015/9/16. |
|
|
|
|
* @class BI.TriggerIconButton |
|
|
|
|
* @extends BI.IconButton |
|
|
|
|
* |
|
|
|
|
* attention: 不要加invisible, 不要单独拿出去用 |
|
|
|
|
*/ |
|
|
|
|
BI.TriggerIconButton = BI.inherit(BI.BasicButton, { |
|
|
|
|
BI.TriggerIconButton = BI.inherit(BI.IconButton, { |
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
return BI.extend(conf, { |
|
|
|
|
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button" |
|
|
|
|
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button", |
|
|
|
|
extraCls: "pull-down-font" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.TriggerIconButton.superclass._init.apply(this, arguments); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "pull-down-font trigger-down" |
|
|
|
|
}, { |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "pull-up-font trigger-up" |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
@ -78557,12 +78545,10 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW, |
|
|
|
|
action: function () { |
|
|
|
|
self.trigger.stopEditing(); |
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
|
action: function () { |
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
|
self.fireEvent(BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
@ -97522,12 +97508,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
|
this.setValue(self.storeValue); |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.populate(); |
|
|
|
@ -97884,12 +97865,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
|
this.setValue(self.storeValue); |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.populate(); |
|
|
|
@ -98283,12 +98259,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
|
this.setValue(self.storeValue); |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.populate(); |
|
|
|
@ -101361,7 +101332,6 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
|
if (isSearching()) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -101374,7 +101344,6 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
if (isSearching()) { |
|
|
|
|
self.trigger.stopEditing(); |
|
|
|
|
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); |
|
|
|
@ -105169,12 +105138,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
|
this.setValue(self.storeValue); |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.populate(); |
|
|
|
|