Skip to content

u-form-item 支持自定义校验对象 #1292

Description

@P2K0

这个功能解决了什么问题?

解决自定义对象校验

在某些业务场景下 我想对校验 "name" 不为空

例子:
现在有组数据
const data = { model: { userList: [ { name: "张三", age: 2 }, { name: "", age: 3 } ] } };

你期望的 API 是怎样的?

通过对 u-form-item 传入一个 target 从而让它从 model => target 实现校验

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions