Browse Source

REPORT-73699 fix: 允许编辑时外部传递进来的text可能是一个方法

research/test
Kitetop 2 years ago
parent
commit
5c78261832
  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