Browse Source

Pull request #1951: BI-88116 全选后点击查看已选多发了一次请求(点击查看已选不需要再请求选中个数信息)

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

* commit '128f58ce4846e80c359ada29cca8802eeea2497a':
  JSY-7060 fix: stopEditor事件参数
  无JIRA任务 全选后点击查看已选多发了一次请求
master
windy 4 years ago
parent
commit
e5247d9ff8
  1. 6
      src/base/combination/switcher.js
  2. 2
      src/widget/editor/editor.search.js
  3. 2
      src/widget/multiselect/trigger/switcher.checkselected.js

6
src/base/combination/switcher.js

@ -191,9 +191,13 @@ BI.Switcher = BI.inherit(BI.Widget, {
}, this.getName()); }, this.getName());
}, },
populate: function (items) { _populate: function () {
this._assertPopupView(); this._assertPopupView();
this.popupView.populate.apply(this.popupView, arguments); this.popupView.populate.apply(this.popupView, arguments);
},
populate: function (items) {
this._populate.apply(this, arguments);
this.switcher.populate && this.switcher.populate.apply(this.switcher, arguments); this.switcher.populate && this.switcher.populate.apply(this.switcher, arguments);
}, },

2
src/widget/editor/editor.search.js

@ -35,7 +35,7 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
}); });
this.clear.on(BI.IconButton.EVENT_CHANGE, function () { this.clear.on(BI.IconButton.EVENT_CHANGE, function () {
self.setValue(""); self.setValue("");
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.STOPEDIT, self.getValue());
// 从有内容到无内容的清空也是一次change // 从有内容到无内容的清空也是一次change
self.fireEvent(BI.SearchEditor.EVENT_CHANGE); self.fireEvent(BI.SearchEditor.EVENT_CHANGE);
self.fireEvent(BI.SearchEditor.EVENT_CLEAR); self.fireEvent(BI.SearchEditor.EVENT_CLEAR);

2
src/widget/multiselect/trigger/switcher.checkselected.js

@ -62,7 +62,7 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
this.switcher.on(BI.Switcher.EVENT_AFTER_POPUPVIEW, function () { this.switcher.on(BI.Switcher.EVENT_AFTER_POPUPVIEW, function () {
var me = this; var me = this;
BI.nextTick(function () { BI.nextTick(function () {
me.populate(); me._populate();
}); });
}); });
}, },

Loading…
Cancel
Save