Browse Source

Merge pull request #2853 in VISUAL/fineui from DEC/fineui:feature/x to master

* commit '8e0fc6c1b19fb5791e55850d07014e7bad845837':
  REPORT-73699 fix: 允许编辑时外部传递进来的text可能是一个方法
es6
Aeolus.Zhang 2 years ago
parent
commit
65ed113cb0
  1. 7
      src/widget/multiselect/multiselect.trigger.js

7
src/widget/multiselect/multiselect.trigger.js

@ -95,7 +95,12 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
el: { el: {
type: "bi.text", type: "bi.text",
title: function () { title: function () {
return self.searcher.getState(); /** 修正REPORT-73699引入,需要考虑到传递过来的值是方法的情况 */
var state = self.searcher.getState();
if (BI.isFunction(state)) {
return state();
}
return state;
} }
}, },
left: 0, left: 0,

Loading…
Cancel
Save