From dd0ceee346f2607ce9013d31f467a5371e2caeea Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 5 Aug 2019 10:14:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20value=E6=B2=A1=E4=BC=A0=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84=E6=98=AF[null]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/2.0/fineui.ie.js | 8 ++++++-- dist/2.0/fineui.js | 8 ++++++-- dist/bundle.ie.js | 8 ++++++-- dist/bundle.js | 8 ++++++-- dist/fineui.ie.js | 8 ++++++-- dist/fineui.js | 8 ++++++-- dist/fineui_without_jquery_polyfill.js | 8 ++++++-- dist/widget.js | 8 ++++++-- .../multilayerselecttree.leveltree.js | 4 +++- .../multilayersingletree.leveltree.js | 4 +++- 10 files changed, 54 insertions(+), 18 deletions(-) diff --git a/dist/2.0/fineui.ie.js b/dist/2.0/fineui.ie.js index 33d63a2fc..c84babc5d 100644 --- a/dist/2.0/fineui.ie.js +++ b/dist/2.0/fineui.ie.js @@ -68909,7 +68909,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -69885,7 +69887,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/dist/2.0/fineui.js b/dist/2.0/fineui.js index 1bf1251a7..a0f366ca3 100644 --- a/dist/2.0/fineui.js +++ b/dist/2.0/fineui.js @@ -69313,7 +69313,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -70289,7 +70291,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/dist/bundle.ie.js b/dist/bundle.ie.js index 33d63a2fc..c84babc5d 100644 --- a/dist/bundle.ie.js +++ b/dist/bundle.ie.js @@ -68909,7 +68909,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -69885,7 +69887,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/dist/bundle.js b/dist/bundle.js index 1bf1251a7..a0f366ca3 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -69313,7 +69313,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -70289,7 +70291,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/dist/fineui.ie.js b/dist/fineui.ie.js index 5b0eeb989..c477c2cca 100644 --- a/dist/fineui.ie.js +++ b/dist/fineui.ie.js @@ -69154,7 +69154,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -70130,7 +70132,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/dist/fineui.js b/dist/fineui.js index 844673777..199c519c8 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -69558,7 +69558,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -70534,7 +70536,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/dist/fineui_without_jquery_polyfill.js b/dist/fineui_without_jquery_polyfill.js index 02c84a185..b28fd6664 100644 --- a/dist/fineui_without_jquery_polyfill.js +++ b/dist/fineui_without_jquery_polyfill.js @@ -52164,7 +52164,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -53140,7 +53142,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/dist/widget.js b/dist/widget.js index b0553e551..7c504257b 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -6976,7 +6976,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { @@ -7952,7 +7954,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js b/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js index 9309de5ae..79705505c 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js +++ b/src/widget/multilayerselecttree/multilayerselecttree.leveltree.js @@ -159,7 +159,9 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () { diff --git a/src/widget/multilayersingletree/multilayersingletree.leveltree.js b/src/widget/multilayersingletree/multilayersingletree.leveltree.js index 0de4d5a54..ae11c36b6 100644 --- a/src/widget/multilayersingletree/multilayersingletree.leveltree.js +++ b/src/widget/multilayersingletree/multilayersingletree.leveltree.js @@ -158,7 +158,9 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, getValue: function () { - return BI.isArray(this.storeValue) ? this.storeValue : [this.storeValue]; + return BI.isArray(this.storeValue) ? + this.storeValue : BI.isNull(this.storeValue) ? + [] : [this.storeValue]; }, getAllLeaves: function () {