From 6696bb4d8552a28ab45f750e49781d5604667509 Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 29 Mar 2018 13:48:54 +0800 Subject: [PATCH] update --- dist/bundle.js | 7 ++----- dist/widget.js | 7 ++----- src/widget/singleselect/singleselectlist.insert.js | 7 ++----- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index 47438825a..bf59f2802 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -104159,9 +104159,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { }, _assertValue: function (val) { - val || (val = {}); - val.type || (val.type = BI.Selection.Single); - val.value || (val.value = []); + val || (val = ""); }, _makeMap: function (values) { @@ -104270,8 +104268,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { // this.trigger.adjustView(); }, setValue: function (v) { - this.storeValue = v || {}; - this._assertValue(this.storeValue); + this.storeValue = v || ""; this.adapter.setValue(this.storeValue); this.trigger.setValue(this.storeValue); }, diff --git a/dist/widget.js b/dist/widget.js index 7da7f2e41..70d76bb8c 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -17648,9 +17648,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { }, _assertValue: function (val) { - val || (val = {}); - val.type || (val.type = BI.Selection.Single); - val.value || (val.value = []); + val || (val = ""); }, _makeMap: function (values) { @@ -17759,8 +17757,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { // this.trigger.adjustView(); }, setValue: function (v) { - this.storeValue = v || {}; - this._assertValue(this.storeValue); + this.storeValue = v || ""; this.adapter.setValue(this.storeValue); this.trigger.setValue(this.storeValue); }, diff --git a/src/widget/singleselect/singleselectlist.insert.js b/src/widget/singleselect/singleselectlist.insert.js index 2236c4e13..2b77b1fdd 100644 --- a/src/widget/singleselect/singleselectlist.insert.js +++ b/src/widget/singleselect/singleselectlist.insert.js @@ -190,9 +190,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { }, _assertValue: function (val) { - val || (val = {}); - val.type || (val.type = BI.Selection.Single); - val.value || (val.value = []); + val || (val = ""); }, _makeMap: function (values) { @@ -301,8 +299,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, { // this.trigger.adjustView(); }, setValue: function (v) { - this.storeValue = v || {}; - this._assertValue(this.storeValue); + this.storeValue = v || ""; this.adapter.setValue(this.storeValue); this.trigger.setValue(this.storeValue); },