Update form.md

pull/7683/head
lltemplar 2017-10-24 12:07:37 +08:00 committed by 杨奕
parent 1d90390fa5
commit f904e964f2
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ Depending on your design, there are several different ways to align your label e
Form component allows you to verify your data, helping you find and correct errors.
:::demo Just add the `rule` attribute for `Form` component, pass validation rules, and set `prop` attribute for `Form-Item` as a specific key that needs to be validated. See more information at [async-validator](https://github.com/yiminghe/async-validator).
:::demo Just add the `rules` attribute for `Form` component, pass validation rules, and set `prop` attribute for `Form-Item` as a specific key that needs to be validated. See more information at [async-validator](https://github.com/yiminghe/async-validator).
```html
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">