feat(Form): add validateField method

This commit is contained in:
陈嘉涵
2020-02-13 15:10:50 +08:00
parent 4059643f2f
commit b4d117f59d
4 changed files with 24 additions and 3 deletions
+2 -1
View File
@@ -452,7 +452,8 @@ export default {
| 方法名 | 说明 | 参数 | 返回值 |
|------|------|------|------|
| validate | 触发表单验证 | - | *Promise\<void\>* |
| validate | 验证所有表单项,返回 Promise,验证不通过时 reject | - | *Promise* |
| validateField | 验证单个表单项,返回 Promise,验证不通过时 reject | *name: string* | *Promise* |
| resetValidation | 重置所有表单验证提示 | - | - |
### Slots