From 9ccd81961bc8759601d3b63a916c1ab31ff34e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=95=8F?= Date: Tue, 5 Jun 2018 14:00:16 +0800 Subject: [PATCH] fixed #3722 --- src/components/select/select.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index feaff4dd..f1e42664 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -638,6 +638,10 @@ value(value){ const {getInitialValue, getOptionData, publicValue} = this; + if (getInitialValue().length > 0) { + this.hasExpectedValue = true + } + if (value === '') this.values = []; else if (JSON.stringify(value) !== JSON.stringify(publicValue)) { this.$nextTick(() => this.values = getInitialValue().map(getOptionData).filter(Boolean));