From 17d3312a9ba7faa9da0dabbc6e637076bb5edc68 Mon Sep 17 00:00:00 2001 From: "Jimmy.Chai" Date: Fri, 16 Jul 2021 16:20:22 +0800 Subject: [PATCH] =?UTF-8?q?BI-88584=20reafctor=EF=BC=9A=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/layer/pane.list.js | 3 ++- src/widget/multiselect/search/multiselect.search.loader.js | 5 ++++- src/widget/singleselect/search/singleselect.search.loader.js | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/case/layer/pane.list.js b/src/case/layer/pane.list.js index d65fb82f0..9cad462cf 100644 --- a/src/case/layer/pane.list.js +++ b/src/case/layer/pane.list.js @@ -122,7 +122,8 @@ BI.ListPane = BI.inherit(BI.Pane, { return; } BI.ListPane.superclass.populate.apply(this, arguments); - var tipText = BI.get(arguments, [2], ''); + var context = BI.get(arguments, [2], {}); + var tipText = context.tipText || ''; BI.isNotEmptyString(tipText) && this.setTipText(tipText); this.button_group.populate.apply(this.button_group, arguments); }, diff --git a/src/widget/multiselect/search/multiselect.search.loader.js b/src/widget/multiselect/search/multiselect.search.loader.js index c57d1e494..dc2cf5d06 100644 --- a/src/widget/multiselect/search/multiselect.search.loader.js +++ b/src/widget/multiselect/search/multiselect.search.loader.js @@ -68,7 +68,10 @@ BI.MultiSelectSearchLoader = BI.inherit(BI.Widget, { var json = self._filterValues(self.storeValue); firstItems = self._createItems(json); } - callback(firstItems.concat(self._createItems(ob.items)), keyword, ob.tipText); + var context = { + tipText: ob.tipText, + }; + callback(firstItems.concat(self._createItems(ob.items)), keyword, context); if (op.times === 1 && self.storeValue) { self.setValue(self.storeValue); } diff --git a/src/widget/singleselect/search/singleselect.search.loader.js b/src/widget/singleselect/search/singleselect.search.loader.js index 1ad33f9c1..68a953124 100644 --- a/src/widget/singleselect/search/singleselect.search.loader.js +++ b/src/widget/singleselect/search/singleselect.search.loader.js @@ -64,7 +64,10 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { var json = self._filterValues(self.storeValue); firstItems = self._createItems(json); } - callback(firstItems.concat(self._createItems(ob.items)), keyword || "", ob.tipText); + var context = { + tipText: ob.tipText, + }; + callback(firstItems.concat(self._createItems(ob.items)), keyword || "", context); if (op.times === 1 && self.storeValue) { self.setValue(self.storeValue); }