fixed Form reset using Input or Switch

fixed Form reset using Input or Switch
This commit is contained in:
梁灏 2017-02-14 10:51:12 +08:00
parent 867eca350e
commit 38646a1171
2 changed files with 24 additions and 23 deletions

View file

@ -189,7 +189,7 @@
if (Array.isArray(value) && value.length > 0) {
this.validateDisabled = true;
prop.o[prop.k] = [];
} else if (value) {
} else if (value !== this.initialValue) {
this.validateDisabled = true;
prop.o[prop.k] = this.initialValue;
}