Skip to content

Commit

Permalink
docs: Update Form async validator docs (ElemeFE#14694)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored and ziyoung committed Mar 13, 2019
1 parent d125568 commit 701caf3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/docs/en-US/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ This example shows how to customize your own validation rules to finish a two-fa
```
:::

:::tip
See more advanced usage of validation rules at [async-validator](https://github.com/yiminghe/async-validator)
:::

### Delete or add form items dynamically

:::demo In addition to passing all validation rules at once on the form component, you can also pass the validation rules or delete rules on a single form field dynamically.
Expand Down
4 changes: 4 additions & 0 deletions examples/docs/es/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ Este ejemplo muestra cómo personalizar sus propias reglas de validación para f

:::

:::tip
See more advanced usage of validation rules at [async-validator](https://github.com/yiminghe/async-validator)
:::

### Eliminar o agregar validaciones dinamicamente

:::demo Además de pasar todas las reglas de validación al mismo tiempo en el componente `form`, también puede pasar las reglas de validación o borrar reglas en un único campo de formulario de forma dinámica.
Expand Down
4 changes: 4 additions & 0 deletions examples/docs/fr-FR/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ Cet exemple montre comment vous pouvez personnaliser vos règles de validation p
```
:::

:::tip
See more advanced usage of validation rules at [async-validator](https://github.com/yiminghe/async-validator)
:::

### Ajouter ou supprimer des champs dynamiquement

:::demo En plus de pouvoir passer toutes les règles de validation en une seule fois au formulaire, vous pouvez aussi ajouter ou supprimer des règles sur un seul champ de manière dynamique.
Expand Down
4 changes: 4 additions & 0 deletions examples/docs/zh-CN/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ W3C 标准中有如下[规定](https://www.w3.org/MarkUp/html-spec/html-spec_8.h
```
:::

:::tip
校验规则更多高级用法可参考 [async-validator](https://github.com/yiminghe/async-validator)
:::

### 动态增减表单项

:::demo 除了在 Form 组件上一次性传递所有的验证规则外还可以在单个的表单域上传递属性的验证规则
Expand Down

0 comments on commit 701caf3

Please sign in to comment.