Browse Source

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

Merge in DEC/fineui from ~KITETOP/fineui:release/11.0 to release/11.0

* commit '5c782618323f8e147cfe49d1219b0c2c46cb5a1a':
  REPORT-73699 fix: 允许编辑时外部传递进来的text可能是一个方法
research/test
Kitetop 2 years ago
parent
commit
bc3a7e6801
  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