Skip to content

components/form/utils/validateUtil.ts When validateFirst is true or false, the reject promise cannot be returned for form.vlidate #4246

@cmtter

Description

@cmtter
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.4

Environment

vue3 chrome

Reproduction link

https://2wpk21kzvr.csb.app/

Steps to reproduce

设置validateFirst为true, 当验证失败的是无法返回 reject promise,不清楚为什么?
components/form/utils/validateUtil.ts at row 200

What is expected?

设置validateFirst为true时, 当验证失败的是能返回 reject promise, 保证和不设置validateFirst属性时的 api使用一致性

What is actually happening?

这是不是一种缺陷,还是说就是合理的设计

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions