|
|
|
@ -37,11 +37,11 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
}, |
|
|
|
|
isAutoSearch: false, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.state_editor", |
|
|
|
|
type: "bi.default_text_editor", |
|
|
|
|
ref: function () { |
|
|
|
|
self.editor = this; |
|
|
|
|
}, |
|
|
|
|
defaultText: o.text, |
|
|
|
|
defaultText: o.defaultText, |
|
|
|
|
text: this._digest(o.value), |
|
|
|
|
value: o.value, |
|
|
|
|
height: o.height, |
|
|
|
@ -192,16 +192,11 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
return o.valueFormatter(v); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (o.itemsCreator === BI.emptyFn) { |
|
|
|
|
var result = BI.find(o.items, function (i, item) { |
|
|
|
|
return item.value === v; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return BI.isNotNull(result) ? result.text : o.text; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return v; |
|
|
|
|
var result = BI.find(o.items, function (i, item) { |
|
|
|
|
return item.value === v; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return BI.isNotNull(result) ? result.text : (o.text ?? v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_getShowText: function () { |
|
|
|
|