|
|
|
@ -2,14 +2,12 @@
|
|
|
|
|
* Created by zcf_1 on 2017/5/2. |
|
|
|
|
*/ |
|
|
|
|
BI.MultiSelectList = BI.inherit(BI.Widget, { |
|
|
|
|
_constant: { |
|
|
|
|
EDITOR_HEIGHT: 24 |
|
|
|
|
}, |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.MultiSelectList.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-multi-select-list", |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
searcherHeight: 24 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -62,6 +60,9 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.searcher", |
|
|
|
|
el: { |
|
|
|
|
height: o.searcherHeight |
|
|
|
|
}, |
|
|
|
|
allowSearchBlank: false, |
|
|
|
|
isAutoSearch: false, |
|
|
|
|
isAutoSync: false, |
|
|
|
@ -151,7 +152,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.trigger, |
|
|
|
|
height: this._constant.EDITOR_HEIGHT |
|
|
|
|
height: o.searcherHeight |
|
|
|
|
}, { |
|
|
|
|
el: this.adapter, |
|
|
|
|
height: "fill" |
|
|
|
@ -162,7 +163,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: this.searcherPane, |
|
|
|
|
top: this._constant.EDITOR_HEIGHT, |
|
|
|
|
top: o.searcherHeight, |
|
|
|
|
bottom: 0, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0 |
|
|
|
|