diff --git a/src/widget/multiselectlist/multiselectlist.insert.js b/src/widget/multiselectlist/multiselectlist.insert.js index d4ccc8b7c..6655bbb95 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.js +++ b/src/widget/multiselectlist/multiselectlist.insert.js @@ -6,7 +6,8 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { return BI.extend(BI.MultiSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", itemsCreator: BI.emptyFn, - valueFormatter: BI.emptyFn + valueFormatter: BI.emptyFn, + searcherHeight: 24, }); }, _init: function () { @@ -75,6 +76,9 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { this.trigger = BI.createWidget({ type: "bi.searcher", + el: { + height: o.searcherHeight, + }, allowSearchBlank: false, isAutoSearch: false, isAutoSync: false, @@ -169,7 +173,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { element: this, items: [{ el: this.trigger, - height: 24 + height: o.searcherHeight }, { el: this.adapter, height: "fill" @@ -180,7 +184,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { element: this, items: [{ el: this.searcherPane, - top: 30, + top: o.searcherHeight, bottom: 0, left: 0, right: 0 diff --git a/src/widget/multiselectlist/multiselectlist.insert.nobar.js b/src/widget/multiselectlist/multiselectlist.insert.nobar.js index 29876e3eb..b0463e60e 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.nobar.js +++ b/src/widget/multiselectlist/multiselectlist.insert.nobar.js @@ -6,7 +6,8 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { return BI.extend(BI.MultiSelectInsertNoBarList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", itemsCreator: BI.emptyFn, - valueFormatter: BI.emptyFn + valueFormatter: BI.emptyFn, + searcherHeight: 24 }); }, _init: function () { @@ -81,6 +82,9 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { this.trigger = BI.createWidget({ type: "bi.searcher", + el: { + height: o.searcherHeight + }, allowSearchBlank: false, isAutoSearch: false, isAutoSync: false, @@ -177,7 +181,7 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { element: this, items: [{ el: this.trigger, - height: 24 + height: o.searcherHeight }, { el: this.adapter, height: "fill" @@ -188,7 +192,7 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { element: this, items: [{ el: this.searcherPane, - top: 30, + top: o.searcherHeight, bottom: 0, left: 0, right: 0 diff --git a/src/widget/multiselectlist/multiselectlist.js b/src/widget/multiselectlist/multiselectlist.js index d59fde0bb..3c60972fa 100644 --- a/src/widget/multiselectlist/multiselectlist.js +++ b/src/widget/multiselectlist/multiselectlist.js @@ -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