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 f3d3962cc..b7b307e55 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 722d73012..4dacd5091 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 a23b1c321..dbcfabdc2 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 2c56a3ac2..b5dc4f04f 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 04b29e09b..29876e3eb 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 b0085f5d6..d59fde0bb 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 3336fb985..9bd6b8b91 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 fb687e7f0..6b580d1e6 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 f0851985a..39c81602f 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,