Browse Source

DESIGN-4103 feat: 点击清除之后需要对外抛事件

es6
zsmj 3 years ago
parent
commit
9b1c354ca4
  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.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,
action: function () {
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,
action: function () {
self._clear();
self.fireEvent(BI.TextValueCombo.EVENT_CHANGE);
}
}
],

Loading…
Cancel
Save