fix(form-item): should not validate when not have name (#5081)
parent
8beb37f64a
commit
0bc1e0a620
|
@ -199,6 +199,10 @@ export default defineComponent({
|
|||
return variables;
|
||||
});
|
||||
const validateRules = (options: ValidateOptions) => {
|
||||
// no name, no value, so the validate result is incorrect
|
||||
if (namePath.value.length === 0) {
|
||||
return;
|
||||
}
|
||||
const { validateFirst = false } = props;
|
||||
const { triggerName } = options || {};
|
||||
|
||||
|
|
Loading…
Reference in New Issue