From b14f323f4328c051c2501224bf4cf528a5c86618 Mon Sep 17 00:00:00 2001 From: jimmychai Date: Mon, 8 May 2023 14:36:52 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-80311=20fix:=20=E7=BB=99=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/searcher.js | 3 +++ src/widget/multiselectlist/multiselectlist.insert.js | 2 ++ src/widget/multiselecttree/multiselecttree.js | 4 +++- src/widget/singleselect/singleselectlist.insert.js | 2 ++ src/widget/timeinterval/dateinterval.js | 1 + src/widget/yearmonthinterval/yearmonthinterval.js | 4 +++- 6 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/base/combination/searcher.js b/src/base/combination/searcher.js index 2b13548b3..45d19488c 100644 --- a/src/base/combination/searcher.js +++ b/src/base/combination/searcher.js @@ -39,6 +39,8 @@ BI.Searcher = BI.inherit(BI.Widget, { masker: { // masker层 offset: {}, }, + + simple: false, }); }, @@ -47,6 +49,7 @@ BI.Searcher = BI.inherit(BI.Widget, { this.editor = BI.createWidget(o.el, { type: "bi.search_editor", + simple: o.simple, }); BI.createWidget({ diff --git a/src/widget/multiselectlist/multiselectlist.insert.js b/src/widget/multiselectlist/multiselectlist.insert.js index 8b6e8785f..4c7da6df9 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.js +++ b/src/widget/multiselectlist/multiselectlist.insert.js @@ -9,6 +9,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { valueFormatter: BI.emptyFn, searcherHeight: BI.SIZE_CONSANTS.TRIGGER_HEIGHT, itemHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT, + simple: false, }); }, _init: function () { @@ -70,6 +71,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, { el: { type: "bi.search_editor", watermark: BI.i18nText("BI-Basic_Search_And_Patch_Paste"), + simple: o.simple, }, ref: function (ref) { self.editor = ref; diff --git a/src/widget/multiselecttree/multiselecttree.js b/src/widget/multiselecttree/multiselecttree.js index 959c6593b..ef77287d9 100644 --- a/src/widget/multiselecttree/multiselecttree.js +++ b/src/widget/multiselecttree/multiselecttree.js @@ -9,7 +9,8 @@ BI.MultiSelectTree = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-tree", - itemsCreator: BI.emptyFn + itemsCreator: BI.emptyFn, + simple: false, }); }, @@ -51,6 +52,7 @@ BI.MultiSelectTree = BI.inherit(BI.Single, { type: "bi.searcher", isAutoSearch: false, isAutoSync: false, + simple: o.simple, onSearch: function (op, callback) { callback({ keyword: self.searcher.getKeyword() diff --git a/src/widget/singleselect/singleselectlist.insert.js b/src/widget/singleselect/singleselectlist.insert.js index cd32a22e8..def836349 100644 --- a/src/widget/singleselect/singleselectlist.insert.js +++ b/src/widget/singleselect/singleselectlist.insert.js @@ -12,6 +12,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { itemWrapper: BI.emptyFn, valueFormatter: BI.emptyFn, searcherHeight: 24, + simple: false, }); }, _init: function () { @@ -70,6 +71,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { el: { type: "bi.search_editor", watermark: BI.i18nText("BI-Basic_Search_And_Patch_Paste"), + simple: o.simple, }, ref: function (ref) { self.editor = ref; diff --git a/src/widget/timeinterval/dateinterval.js b/src/widget/timeinterval/dateinterval.js index 2da77de8b..98e27e3ce 100644 --- a/src/widget/timeinterval/dateinterval.js +++ b/src/widget/timeinterval/dateinterval.js @@ -17,6 +17,7 @@ BI.DateInterval = BI.inherit(BI.Single, { maxDate: "2099-12-31", height: 24, supportDynamic: true, + simple: false, }); }, diff --git a/src/widget/yearmonthinterval/yearmonthinterval.js b/src/widget/yearmonthinterval/yearmonthinterval.js index 814123f67..2bec1d88d 100644 --- a/src/widget/yearmonthinterval/yearmonthinterval.js +++ b/src/widget/yearmonthinterval/yearmonthinterval.js @@ -11,7 +11,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, { minDate: "1900-01-01", maxDate: "2099-12-31", supportDynamic: true, - height: 24 + height: 24, + simple: false, }, render: function () { @@ -45,6 +46,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, { var self = this, o = this.options; var combo = BI.createWidget({ type: "bi.dynamic_year_month_combo", + simple: o.simple, supportDynamic: o.supportDynamic, height: o.height, minDate: o.minDate,