Browse Source

无JRIA fix: valueFormatter fix

es6
zsmj 2 years ago
parent
commit
a8859107c3
  1. 5
      src/case/trigger/trigger.text.select.js

5
src/case/trigger/trigger.text.select.js

@ -52,8 +52,7 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
_digest: function (val, items) {
var o = this.options;
val = BI.isArray(val) ? val : [val];
// 提升valueFormatter的优先级
if (o.valueFormatter !== BI.emptyFn && BI.isFunction(o.valueFormatter)) {
return {
@ -61,6 +60,8 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
};
}
val = BI.isArray(val) ? val : [val];
var result = [];
var formatItems = BI.Tree.transformToArrayFormat(items);

Loading…
Cancel
Save