Skip to content

form 规则校验select placeholder显示需要定义为null 或者 undefined, validate校验 TS检测不到参数类型 异常 #3507

@XB-KamenRider

Description

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

Version

2.0.0-rc.8

Environment

Windows\版本 89.0.4356.6\v3.0.0

Reproduction link

https://github.com/LSP-XA/vue3-filters.git

Steps to reproduce

点击提交,console 提示异常 Warning: Form rules must provide type property when validating a value which is not string type

What is expected?

期望select 空字符串可以显示placeholder

What is actually happening?

不显示placeholder 定义undefined,会触发ts类型格式验证

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions