Commit 9ccd81961bc8759601d3b63a916c1ab31ff34e0b
1 parent
0fb9d645
fixed #3722
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/components/select/select.vue
| @@ -638,6 +638,10 @@ | @@ -638,6 +638,10 @@ | ||
| 638 | value(value){ | 638 | value(value){ |
| 639 | const {getInitialValue, getOptionData, publicValue} = this; | 639 | const {getInitialValue, getOptionData, publicValue} = this; |
| 640 | 640 | ||
| 641 | + if (getInitialValue().length > 0) { | ||
| 642 | + this.hasExpectedValue = true | ||
| 643 | + } | ||
| 644 | + | ||
| 641 | if (value === '') this.values = []; | 645 | if (value === '') this.values = []; |
| 642 | else if (JSON.stringify(value) !== JSON.stringify(publicValue)) { | 646 | else if (JSON.stringify(value) !== JSON.stringify(publicValue)) { |
| 643 | this.$nextTick(() => this.values = getInitialValue().map(getOptionData).filter(Boolean)); | 647 | this.$nextTick(() => this.values = getInitialValue().map(getOptionData).filter(Boolean)); |