提交 c487fd59 编写于 作者: D Drjnigfubo

fix(form): modify validation rules

上级 2afdcb24
......@@ -98,7 +98,7 @@ export const component = {
const { required, regex, message } = ruleWithoutValidator;
const errorMsg = { prop, message };
if (required) {
if (!value) {
if (!value && value !== 0) {
return _Promise(errorMsg);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册