fix(Field): fix the issue of checking empty value (#7050)

* fix(Field): fix the issue of checking empty value

* fix: field tests

* docs: remove radio-group

* docs: remove required translation key
This commit is contained in:
Victor
2020-09-02 20:14:55 +08:00
committed by GitHub
parent 438d34caf1
commit f8d2572354
2 changed files with 6 additions and 13 deletions
+3 -1
View File
@@ -190,7 +190,9 @@ export default createComponent({
if (Array.isArray(value)) {
return !value.length;
}
if (value === 0) {
return false;
}
return !value;
},