This commit is contained in:
梁灏 2021-09-16 17:20:24 +08:00
parent 144c32f254
commit 238ead03ca

View file

@ -840,7 +840,7 @@
// Form null null [] // Form null null []
if (Array.isArray(vModelValue) && !vModelValue.length && this.value === null) vModelValue = null; if (Array.isArray(vModelValue) && !vModelValue.length && this.value === null) vModelValue = null;
else if (vModelValue === undefined && this.value === null) vModelValue = null else if (vModelValue === undefined && this.value === null) vModelValue = null;
this.$emit('input', vModelValue); // to update v-model this.$emit('input', vModelValue); // to update v-model
this.$emit('on-change', emitValue); this.$emit('on-change', emitValue);