|
|
@ -36,11 +36,6 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
return (o.itemsCreator === BI.emptyFn) ? this._getSyncConfig() : this._getAsyncConfig(); |
|
|
|
return (o.itemsCreator === BI.emptyFn) ? this._getSyncConfig() : this._getAsyncConfig(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_shouldWrapper: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return !o.allowEdit && o.itemsCreator === BI.emptyFn; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getBaseConfig: function () { |
|
|
|
_getBaseConfig: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
return { |
|
|
|
return { |
|
|
@ -99,7 +94,6 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
container: o.container, |
|
|
|
container: o.container, |
|
|
|
allowInsertValue: o.allowInsertValue, |
|
|
|
allowInsertValue: o.allowInsertValue, |
|
|
|
allowSearchValue: o.allowSearchValue, |
|
|
|
allowSearchValue: o.allowSearchValue, |
|
|
|
allowEdit: o.allowEdit, |
|
|
|
|
|
|
|
cls: "multilayer-single-tree-trigger", |
|
|
|
cls: "multilayer-single-tree-trigger", |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function (_ref) { |
|
|
|
self.trigger = _ref; |
|
|
|
self.trigger = _ref; |
|
|
@ -184,13 +178,28 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
tipType: o.tipType, |
|
|
|
tipType: o.tipType, |
|
|
|
warningTitle: o.warningTitle, |
|
|
|
warningTitle: o.warningTitle, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getAsyncConfig: function () { |
|
|
|
_getAsyncConfig: function () { |
|
|
|
var config = this._getBaseConfig(); |
|
|
|
var o = this.options, self = this; |
|
|
|
return BI.extend(config, this._getSearchConfig()); |
|
|
|
var baseConfig = this._getBaseConfig(); |
|
|
|
|
|
|
|
return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.single_tree_trigger", |
|
|
|
|
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
self.textTrigger = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
|
|
|
|
value: o.value, |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getSearcher: function () { |
|
|
|
getSearcher: function () { |
|
|
|