Browse Source

Pull request #1991: BI-88138 fix: 事件补充

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '58d78b370f8cb826ec32557e8504e4ed93a03a74':
  BI-88138 fix: 事件补充
es6
windy 3 years ago
parent
commit
54576ca57b
  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 () { this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () {
self._addItem(assertShowValue, true); self._addItem(assertShowValue, true);
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_ADD_ITEM, this.getSearcher().getKeyword());
}); });
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(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_SEARCHING = "EVENT_SEARCHING";
BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM";
BI.MultiSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; BI.MultiSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.MultiSelectInsertCombo.EVENT_ADD_ITEM = "EVENT_ADD_ITEM";
BI.shortcut("bi.multi_select_insert_combo", BI.MultiSelectInsertCombo); 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 () { this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_PAUSE, function () {
self._addItem(assertShowValue, true); self._addItem(assertShowValue, true);
self.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_ADD_ITEM, this.getSearcher().getKeyword());
}); });
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) { this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords); var last = BI.last(keywords);
@ -467,5 +468,6 @@ BI.extend(BI.MultiSelectInsertNoBarCombo, {
}); });
BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; 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); BI.shortcut("bi.multi_select_insert_no_bar_combo", BI.MultiSelectInsertNoBarCombo);

Loading…
Cancel
Save