From 502ec98cca3226251bebfe23ab3cada20648d9e9 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 27 Apr 2020 14:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20searcher?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=8F=82=E6=95=B0=E6=94=B9=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/searcher.js | 2 +- src/widget/multiselect/trigger/searcher.multiselect.insert.js | 1 + src/widget/multiselect/trigger/searcher.multiselect.js | 1 + src/widget/multiselectlist/multiselectlist.insert.js | 1 + src/widget/multiselectlist/multiselectlist.insert.nobar.js | 1 + src/widget/multiselectlist/multiselectlist.js | 1 + .../trigger/searcher.multitextvalue.js | 1 + src/widget/singleselect/singleselectlist.insert.js | 1 + src/widget/singleselect/trigger/searcher.singleselect.js | 1 + 9 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/base/combination/searcher.js b/src/base/combination/searcher.js index f3d3962cc8..b7b307e55b 100644 --- a/src/base/combination/searcher.js +++ b/src/base/combination/searcher.js @@ -21,7 +21,7 @@ BI.Searcher = BI.inherit(BI.Widget, { isAutoSearch: true, // 是否自动搜索 isAutoSync: true, // 是否自动同步数据, 即是否保持搜索面板和adapter面板状态值的统一 chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, - allowSearchBlank: false, // 是否能够搜索包含空格的字符串 + allowSearchBlank: true, // 是否能够搜索包含空格的字符串 // isAutoSearch为false时启用 onSearch: function (op, callback) { diff --git a/src/widget/multiselect/trigger/searcher.multiselect.insert.js b/src/widget/multiselect/trigger/searcher.multiselect.insert.js index 722d730126..4dacd5091d 100644 --- a/src/widget/multiselect/trigger/searcher.multiselect.insert.js +++ b/src/widget/multiselect/trigger/searcher.multiselect.insert.js @@ -42,6 +42,7 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, { this.searcher = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, element: this, height: o.height, isAutoSearch: false, diff --git a/src/widget/multiselect/trigger/searcher.multiselect.js b/src/widget/multiselect/trigger/searcher.multiselect.js index a23b1c3210..dbcfabdc2f 100644 --- a/src/widget/multiselect/trigger/searcher.multiselect.js +++ b/src/widget/multiselect/trigger/searcher.multiselect.js @@ -42,6 +42,7 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, { this.searcher = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, element: this, height: o.height, isAutoSearch: false, diff --git a/src/widget/multiselectlist/multiselectlist.insert.js b/src/widget/multiselectlist/multiselectlist.insert.js index 2c56a3ac27..b5dc4f04fd 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.js +++ b/src/widget/multiselectlist/multiselectlist.insert.js @@ -75,6 +75,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { this.trigger = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, isAutoSearch: false, isAutoSync: false, onSearch: function (op, callback) { diff --git a/src/widget/multiselectlist/multiselectlist.insert.nobar.js b/src/widget/multiselectlist/multiselectlist.insert.nobar.js index 04b29e09ba..29876e3eba 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.nobar.js +++ b/src/widget/multiselectlist/multiselectlist.insert.nobar.js @@ -81,6 +81,7 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { this.trigger = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, isAutoSearch: false, isAutoSync: false, onSearch: function (op, callback) { diff --git a/src/widget/multiselectlist/multiselectlist.js b/src/widget/multiselectlist/multiselectlist.js index b0085f5d6f..d59fde0bb7 100644 --- a/src/widget/multiselectlist/multiselectlist.js +++ b/src/widget/multiselectlist/multiselectlist.js @@ -62,6 +62,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, { this.trigger = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, isAutoSearch: false, isAutoSync: false, onSearch: function (op, callback) { diff --git a/src/widget/searchmultitextvaluecombo/trigger/searcher.multitextvalue.js b/src/widget/searchmultitextvaluecombo/trigger/searcher.multitextvalue.js index 3336fb9858..9bd6b8b91b 100644 --- a/src/widget/searchmultitextvaluecombo/trigger/searcher.multitextvalue.js +++ b/src/widget/searchmultitextvaluecombo/trigger/searcher.multitextvalue.js @@ -25,6 +25,7 @@ BI.SearchMultiSelectSearcher = BI.inherit(BI.Widget, { this.searcher = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, element: this, height: o.height, isAutoSearch: false, diff --git a/src/widget/singleselect/singleselectlist.insert.js b/src/widget/singleselect/singleselectlist.insert.js index fb687e7f05..6b580d1e6b 100644 --- a/src/widget/singleselect/singleselectlist.insert.js +++ b/src/widget/singleselect/singleselectlist.insert.js @@ -60,6 +60,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { this.trigger = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, isAutoSearch: false, isAutoSync: false, onSearch: function (op, callback) { diff --git a/src/widget/singleselect/trigger/searcher.singleselect.js b/src/widget/singleselect/trigger/searcher.singleselect.js index f0851985af..39c81602f0 100644 --- a/src/widget/singleselect/trigger/searcher.singleselect.js +++ b/src/widget/singleselect/trigger/searcher.singleselect.js @@ -41,6 +41,7 @@ BI.SingleSelectSearcher = BI.inherit(BI.Widget, { this.searcher = BI.createWidget({ type: "bi.searcher", + allowSearchBlank: false, element: this, height: o.height, isAutoSearch: false,