eslint
This commit is contained in:
parent
144c32f254
commit
238ead03ca
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue