From 5421a8bc747313077a48770a36d8bf7dbc7a77ee Mon Sep 17 00:00:00 2001 From: Tangjinxia <1119518763@qq.com> Date: Wed, 22 Sep 2021 19:24:31 +0800 Subject: [PATCH] =?UTF-8?q?BI-93998=20fix:=E6=96=87=E6=9C=AC=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=92=8C=E6=96=87=E6=9C=AC=E5=88=97=E8=A1=A8=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=AD=97=E6=AE=B5=E5=80=BC=E6=9C=89=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=8D=95=E9=80=89=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E9=80=89=E4=B8=AD=E7=A9=BA=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/singleselect/search/singleselect.search.loader.js | 2 +- src/widget/singleselect/singleselect.loader.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widget/singleselect/search/singleselect.search.loader.js b/src/widget/singleselect/search/singleselect.search.loader.js index 68a953124..5d03f020c 100644 --- a/src/widget/singleselect/search/singleselect.search.loader.js +++ b/src/widget/singleselect/search/singleselect.search.loader.js @@ -60,7 +60,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { var keyword = ob.keyword = opts.keywordGetter(); hasNext = ob.hasNext; var firstItems = []; - if (op.times === 1 && BI.isNotNull(self.storeValue)) { + if (op.times === 1 && !BI.isUndefined(self.storeValue)) { var json = self._filterValues(self.storeValue); firstItems = self._createItems(json); } diff --git a/src/widget/singleselect/singleselect.loader.js b/src/widget/singleselect/singleselect.loader.js index 8ac73f985..6318601ab 100644 --- a/src/widget/singleselect/singleselect.loader.js +++ b/src/widget/singleselect/singleselect.loader.js @@ -60,13 +60,13 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, { }, opts.el), itemsCreator: function (op, callback) { var startValue = self._startValue; - BI.isNotNull(self.storeValue) && (op = BI.extend(op || {}, { + !BI.isUndefined(self.storeValue) && (op = BI.extend(op || {}, { selectedValues: [self.storeValue] })); opts.itemsCreator(op, function (ob) { hasNext = ob.hasNext; var firstItems = []; - if (op.times === 1 && BI.isNotNull(self.storeValue)) { + if (op.times === 1 && !BI.isUndefined(self.storeValue)) { var json = BI.map([self.storeValue], function (i, v) { var txt = opts.valueFormatter(v) || v; return {