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