mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
Merge branch 'next' of github.com:vueComponent/ant-design-vue into next
This commit is contained in:
commit
eef874b805
@ -75,6 +75,12 @@ async function validateRule(
|
||||
subRuleField = cloneRule.defaultField;
|
||||
delete cloneRule.defaultField;
|
||||
}
|
||||
if (!rule.type && typeof rule.validator !== 'function' && typeof value !== 'string') {
|
||||
warning(
|
||||
false,
|
||||
`Form rules must provide type property when validating a value which is not string type`,
|
||||
);
|
||||
}
|
||||
|
||||
const validator = new AsyncValidator({
|
||||
[name]: [cloneRule],
|
||||
|
Loading…
Reference in New Issue
Block a user