Browse Source

Pull request #1339: REPORT-31462 事件值上抛一下

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit '94e6b4c79553aecee0d11b2429635b4f12586903':
  REPORT-31462 refactor: 事件值上抛一下
master
Teller 5 years ago
parent
commit
943e25b683
  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,
action: function () {
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM);
action: function (v) {
self.fireEvent(BI.ListTreeValueChooserInsertCombo.EVENT_CLICK_ITEM, v);
}
}, {
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,
action: function () {
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM);
action: function (v) {
self.fireEvent(BI.TreeValueChooserInsertCombo.EVENT_CLICK_ITEM, v);
}
}, {
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,
action: function () {
self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM);
action: function (v) {
self.fireEvent(BI.TreeValueChooserCombo.EVENT_CLICK_ITEM, v);
}
}, {
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);
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 () {

Loading…
Cancel
Save