Browse Source

无JRIA fix: valueFormatter fix

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

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

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

Loading…
Cancel
Save