diff --git a/examples/docs/en-US/form.md b/examples/docs/en-US/form.md index c646172c0..adf92b983 100644 --- a/examples/docs/en-US/form.md +++ b/examples/docs/en-US/form.md @@ -585,6 +585,74 @@ All components in a Form inherit their `size` attribute from that Form. Similarl ``` ::: +### Return form validation result immediately + +:::demo Execute `callback` immediately when the validation of the first form item fails +```html + + + + + + + + + Submit + Reset + + + +``` +::: + ### Form Attributes | Attribute | Description | Type | Accepted Values | Default | diff --git a/examples/docs/es/form.md b/examples/docs/es/form.md index a57c2dec1..147f24714 100644 --- a/examples/docs/es/form.md +++ b/examples/docs/es/form.md @@ -599,6 +599,75 @@ Todos los componentes de un formulario heredan su atributo `size`. De manera sim ::: +### Return form validation result immediately + +:::demo Execute `callback` immediately when the validation of the first form item fails +```html + + + + + + + + + Submit + Reset + + + +``` +::: + + ### Form Atributos | Atributo | Descripción | Tipo | Valores aceptados | Por defecto | diff --git a/examples/docs/fr-FR/form.md b/examples/docs/fr-FR/form.md index 2d82b30a6..25825930f 100644 --- a/examples/docs/fr-FR/form.md +++ b/examples/docs/fr-FR/form.md @@ -584,6 +584,75 @@ Tout les composants d'un formulaire héritent leur attribut `size` de ce formula ``` ::: +### Return form validation result immediately + +:::demo Exécuter `callback` immédiatement lorsque la validation du premier élément de formulaire échoue +```html + + + + + + + + + Submit + Reset + + + +``` +::: + + ### Attributs de Form | Attribut | Description | Type | Valeurs acceptées | Défaut | diff --git a/examples/docs/zh-CN/form.md b/examples/docs/zh-CN/form.md index b7c089e45..c20ccba36 100644 --- a/examples/docs/zh-CN/form.md +++ b/examples/docs/zh-CN/form.md @@ -630,7 +630,7 @@ W3C 标准中有如下[规定](https://www.w3.org/MarkUp/html-spec/html-spec_8.h submitForm(formName) { this.submitting = true; this.$refs[formName].validate((valid) => { - console.log('immediate callback exec!'); + console.log('callback immediate exec!'); if (valid) { alert('submit!'); } else {