diff --git a/src/form/README.md b/src/form/README.md index 0d0a44fa7..44b7fdb35 100644 --- a/src/form/README.md +++ b/src/form/README.md @@ -420,7 +420,8 @@ Use [ref](https://vuejs.org/v2/api/#ref) to get Form instance and call instance | Name | Description | Attribute | Return value | |------|------|------|------| -| validate | Trigger validation | - | *Promise\* | +| validate | Validate all fields | - | *Promise* | +| validateField | Validate a filed | *name: string* | *Promise* | | resetValidation | Reset all validation | - | - | ### Slots diff --git a/src/form/README.zh-CN.md b/src/form/README.zh-CN.md index 4f9b47139..2ae20913b 100644 --- a/src/form/README.zh-CN.md +++ b/src/form/README.zh-CN.md @@ -452,7 +452,8 @@ export default { | 方法名 | 说明 | 参数 | 返回值 | |------|------|------|------| -| validate | 触发表单验证 | - | *Promise\* | +| validate | 验证所有表单项,返回 Promise,验证不通过时 reject | - | *Promise* | +| validateField | 验证单个表单项,返回 Promise,验证不通过时 reject | *name: string* | *Promise* | | resetValidation | 重置所有表单验证提示 | - | - | ### Slots diff --git a/src/form/demo/BasicUsage.vue b/src/form/demo/BasicUsage.vue index ede60f5be..1ffb1eff3 100644 --- a/src/form/demo/BasicUsage.vue +++ b/src/form/demo/BasicUsage.vue @@ -1,6 +1,6 @@