Browse Source

Merge pull request #33475 in DEC/fineui from master to feature/x

* commit '995aae765316753ff69a9bfdb2d9e064a973066b':
  DESIGN-4103 feat: 点击清除之后需要对外抛事件
es6
superman 3 years ago
parent
commit
93b556477a
  1. 8
      src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js
  2. 1
      src/case/combo/textvaluecombo/combo.textvalue.js

8
src/case/combo/searchtextvaluecombo/combo.searchtextvalue.js

@ -55,17 +55,11 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
self.combo.hideView(); self.combo.hideView();
self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE); self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE);
} }
}, {
eventName: BI.SearchTextValueTrigger.EVENT_CLEAR,
action: function () {
self.setValue();
self.combo.hideView();
self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE);
}
}, { }, {
eventName: BI.SearchTextValueTrigger.EVENT_CLEAR, eventName: BI.SearchTextValueTrigger.EVENT_CLEAR,
action: function () { action: function () {
self._clear(); self._clear();
self.fireEvent(BI.SearchTextValueCombo.EVENT_CHANGE);
} }
}] }]
}, },

1
src/case/combo/textvaluecombo/combo.textvalue.js

@ -41,6 +41,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
eventName: BI.SelectTextTrigger.EVENT_CLEAR, eventName: BI.SelectTextTrigger.EVENT_CLEAR,
action: function () { action: function () {
self._clear(); self._clear();
self.fireEvent(BI.TextValueCombo.EVENT_CHANGE);
} }
} }
], ],

Loading…
Cancel
Save