We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
解决自定义对象校验
在某些业务场景下 我想对校验 "name" 不为空
例子: 现在有组数据 const data = { model: { userList: [ { name: "张三", age: 2 }, { name: "", age: 3 } ] } };
const data = { model: { userList: [ { name: "张三", age: 2 }, { name: "", age: 3 } ] } };
通过对 u-form-item 传入一个 target 从而让它从 model => target 实现校验
The text was updated successfully, but these errors were encountered:
feat(u-form-item): 支持自定义校验对象
1c7fe1c
Closes umicro#1292
Successfully merging a pull request may close this issue.
这个功能解决了什么问题?
解决自定义对象校验
在某些业务场景下 我想对校验 "name" 不为空
例子:
现在有组数据
const data = { model: { userList: [ { name: "张三", age: 2 }, { name: "", age: 3 } ] } };
你期望的 API 是怎样的?
通过对 u-form-item 传入一个 target 从而让它从 model => target 实现校验
The text was updated successfully, but these errors were encountered: