Browse Source

无jira任务,BI.DownListCombo重名了,改成BI.MultiLayerDownListCombo

es6
Guyi 4 years ago
parent
commit
c7d0c6f74e
  1. 24
      src/widget/multilayerdownlist/combo.downlist.js

24
src/widget/multilayerdownlist/combo.downlist.js

@ -1,9 +1,9 @@
/** /**
* Created by roy on 15/8/14. * Created by roy on 15/8/14.
*/ */
BI.DownListCombo = BI.inherit(BI.Widget, { BI.MultiLayerDownListCombo = BI.inherit(BI.Widget, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.DownListCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.MultiLayerDownListCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-multilayer-down-list-combo", baseCls: "bi-multilayer-down-list-combo",
height: 24, height: 24,
items: [], items: [],
@ -17,7 +17,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
}, },
_init: function () { _init: function () {
BI.DownListCombo.superclass._init.apply(this, arguments); BI.MultiLayerDownListCombo.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.popupview = BI.createWidget({ this.popupview = BI.createWidget({
type: "bi.multi_layer_down_list_popup", type: "bi.multi_layer_down_list_popup",
@ -26,13 +26,13 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
value: o.value value: o.value
}); });
this.popupview.on(BI.DownListPopup.EVENT_CHANGE, function (value) { this.popupview.on(BI.MultiLayerDownListPopup.EVENT_CHANGE, function (value) {
self.fireEvent(BI.DownListCombo.EVENT_CHANGE, value); self.fireEvent(BI.MultiLayerDownListCombo.EVENT_CHANGE, value);
self.downlistcombo.hideView(); self.downlistcombo.hideView();
}); });
this.popupview.on(BI.DownListPopup.EVENT_SON_VALUE_CHANGE, function (value, fatherValue) { this.popupview.on(BI.MultiLayerDownListPopup.EVENT_SON_VALUE_CHANGE, function (value, fatherValue) {
self.fireEvent(BI.DownListCombo.EVENT_SON_VALUE_CHANGE, value, fatherValue); self.fireEvent(BI.MultiLayerDownListCombo.EVENT_SON_VALUE_CHANGE, value, fatherValue);
self.downlistcombo.hideView(); self.downlistcombo.hideView();
}); });
@ -60,7 +60,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
}); });
this.downlistcombo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { this.downlistcombo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self.fireEvent(BI.DownListCombo.EVENT_BEFORE_POPUPVIEW); self.fireEvent(BI.MultiLayerDownListCombo.EVENT_BEFORE_POPUPVIEW);
}); });
}, },
@ -83,8 +83,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
return this.popupview.getValue(); return this.popupview.getValue();
} }
}); });
BI.DownListCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.MultiLayerDownListCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.DownListCombo.EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE"; BI.MultiLayerDownListCombo.EVENT_SON_VALUE_CHANGE = "EVENT_SON_VALUE_CHANGE";
BI.DownListCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; BI.MultiLayerDownListCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.multi_layer_down_list_combo", BI.DownListCombo); BI.shortcut("bi.multi_layer_down_list_combo", BI.MultiLayerDownListCombo);
Loading…
Cancel
Save