From 33ffa61bdc6636bf66266e22805fd1c1cb35cd4f Mon Sep 17 00:00:00 2001 From: fay Date: Mon, 14 Sep 2020 17:30:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89searcher=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multiselectlist/multiselectlist.insert.js | 10 +++++++--- .../multiselectlist/multiselectlist.insert.nobar.js | 10 +++++++--- src/widget/multiselectlist/multiselectlist.js | 13 +++++++------ 3 files changed, 21 insertions(+), 12 deletions(-) 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