Browse Source

Merge pull request #79561 in DEC/fineui from release/11.0 to feature/x

* commit 'bc3a7e6801b166f4c332f9a851b1b8bc671fa433':
  REPORT-73699 fix: 允许编辑时外部传递进来的text可能是一个方法
es6
superman 2 years ago
parent
commit
8e0fc6c1b1
  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: {
type: "bi.text",
title: function () {
return self.searcher.getState();
/** 修正REPORT-73699引入,需要考虑到传递过来的值是方法的情况 */
var state = self.searcher.getState();
if (BI.isFunction(state)) {
return state();
}
return state;
}
},
left: 0,

Loading…
Cancel
Save