Browse Source

combo增加一个属性

es6
guy 4 years ago
parent
commit
850a1eb448
  1. 5
      src/base/combination/combo.js

5
src/base/combination/combo.js

@ -301,12 +301,15 @@
}, },
_popupView: function (e) { _popupView: function (e) {
var self = this;
this._assertPopupViewRender(); this._assertPopupViewRender();
this.fireEvent(BI.Combo.EVENT_BEFORE_POPUPVIEW); this.fireEvent(BI.Combo.EVENT_BEFORE_POPUPVIEW);
this.popupView.visible(); this.popupView.visible();
BI.each(needHideWhenAnotherComboOpen, function(i, combo){ BI.each(needHideWhenAnotherComboOpen, function (i, combo) {
if (i !== self.getName()) {
combo && combo.hideView(); combo && combo.hideView();
}
}); });
needHideWhenAnotherComboOpen = {}; needHideWhenAnotherComboOpen = {};
this.options.hideWhenAnotherComboOpen && (needHideWhenAnotherComboOpen[this.getName()] = this); this.options.hideWhenAnotherComboOpen && (needHideWhenAnotherComboOpen[this.getName()] = this);

Loading…
Cancel
Save