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:
+3
-1
@@ -190,7 +190,9 @@ export default createComponent({
|
||||
if (Array.isArray(value)) {
|
||||
return !value.length;
|
||||
}
|
||||
|
||||
if (value === 0) {
|
||||
return false;
|
||||
}
|
||||
return !value;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user