Browse Source

BI-88138 fix: 事件补充

es6
windy 3 years ago
parent
commit
58d78b370f
  1. 2
      src/widget/multiselect/multiselect.insert.combo.js
  2. 2
      src/widget/multiselect/multiselect.insert.combo.nobar.js

2
src/widget/multiselect/multiselect.insert.combo.js

@ -75,6 +75,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
});
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () {
self._addItem(assertShowValue, true);
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_ADD_ITEM, this.getSearcher().getKeyword());
});
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords);
@ -473,5 +474,6 @@ BI.MultiSelectInsertCombo.EVENT_STOP = "EVENT_STOP";
BI.MultiSelectInsertCombo.EVENT_SEARCHING = "EVENT_SEARCHING";
BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM";
BI.MultiSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.MultiSelectInsertCombo.EVENT_ADD_ITEM = "EVENT_ADD_ITEM";
BI.shortcut("bi.multi_select_insert_combo", BI.MultiSelectInsertCombo);

2
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -70,6 +70,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
});
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () {
self._addItem(assertShowValue, true);
self.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_ADD_ITEM, this.getSearcher().getKeyword());
});
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords);
@ -467,5 +468,6 @@ BI.extend(BI.MultiSelectInsertNoBarCombo, {
});
BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.MultiSelectInsertNoBarCombo.EVENT_ADD_ITEM = "EVENT_ADD_ITEM";
BI.shortcut("bi.multi_select_insert_no_bar_combo", BI.MultiSelectInsertNoBarCombo);

Loading…
Cancel
Save