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