Browse Source

REPORT-31462 refactor: 事件值上抛一下

master
iapyang 5 years ago
parent
commit
94e6b4c795
  1. 4
      src/component/treevaluechooser/combo.listtreevaluechooser.js
  2. 4
      src/component/treevaluechooser/combo.treevaluechooser.insert.js
  3. 4
      src/component/treevaluechooser/combo.treevaluechooser.js
  4. 2
      src/widget/multitree/multi.tree.combo.js

4
src/component/treevaluechooser/combo.listtreevaluechooser.js

@ -52,8 +52,8 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser,
} }
}, { }, {
eventName: BI.MultiTreeListCombo.EVENT_CLICK_ITEM, eventName: BI.MultiTreeListCombo.EVENT_CLICK_ITEM,
action: function () { action: function (v) {
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM); self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM, v);
} }
}, { }, {
eventName: BI.MultiTreeListCombo.EVENT_SEARCHING, eventName: BI.MultiTreeListCombo.EVENT_SEARCHING,

4
src/component/treevaluechooser/combo.treevaluechooser.insert.js

@ -51,8 +51,8 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, {
} }
}, { }, {
eventName: BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, eventName: BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM,
action: function () { action: function (v) {
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM); self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM, v);
} }
}, { }, {
eventName: BI.MultiTreeInsertCombo.EVENT_SEARCHING, eventName: BI.MultiTreeInsertCombo.EVENT_SEARCHING,

4
src/component/treevaluechooser/combo.treevaluechooser.js

@ -51,8 +51,8 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, {
} }
}, { }, {
eventName: BI.MultiTreeCombo.EVENT_CLICK_ITEM, eventName: BI.MultiTreeCombo.EVENT_CLICK_ITEM,
action: function () { action: function (v) {
self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM); self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM, v);
} }
}, { }, {
eventName: BI.MultiTreeCombo.EVENT_SEARCHING, eventName: BI.MultiTreeCombo.EVENT_SEARCHING,

2
src/widget/multitree/multi.tree.combo.js

@ -181,7 +181,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
}; };
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None);
self.numberCounter.setButtonChecked(val); self.numberCounter.setButtonChecked(val);
self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM); self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM, self.combo.getValue());
}); });
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {

Loading…
Cancel
Save