This commit is contained in:
郑敏 2018-06-05 14:00:16 +08:00
parent 0fb9d6453a
commit 9ccd81961b

View file

@ -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));