diff --git a/examples/docs/en-US/form.md b/examples/docs/en-US/form.md index a0ffbb661..1baebc6f8 100644 --- a/examples/docs/en-US/form.md +++ b/examples/docs/en-US/form.md @@ -879,9 +879,14 @@ All components in a Form inherit their `size` attribute from that Form. Similarl | — | content of Form Item | | label | content of label | +### Form-Item Scoped Slot +| Name | Description | +|---------------|-------------| +| error | Custom content to display validation message. The scope parameter is { error } | + ### Form-Item Methods | Method | Description | Parameters | | ---- | ---- | ---- | | resetField | reset current field and remove validation result | — | -| clearValidate | remove validation status of the field | - +| clearValidate | remove validation status of the field | - | diff --git a/examples/docs/es/form.md b/examples/docs/es/form.md index f73865b75..eefa2c1af 100644 --- a/examples/docs/es/form.md +++ b/examples/docs/es/form.md @@ -884,6 +884,11 @@ Todos los componentes de un formulario heredan su atributo `size`. De manera sim | — | contenido del Form Item | | label | contenido de la etiqueta | +### Form-Item Scoped Slot +| Name | Description | +|---------------|-------------| +| error | Custom content to display validation message. The scope parameter is { error } | + ### Form-Item Metodo | Metodo | Descripción | Parametros | diff --git a/examples/docs/zh-CN/form.md b/examples/docs/zh-CN/form.md index 413b0cf5c..99862afef 100644 --- a/examples/docs/zh-CN/form.md +++ b/examples/docs/zh-CN/form.md @@ -867,6 +867,11 @@ W3C 标准中有如下[规定](https://www.w3.org/MarkUp/html-spec/html-spec_8.h | — | Form Item 的内容 | | label | 标签文本的内容 | +### Form-Item Scoped Slot +| name | 说明 | +|--------|--------| +| error | 自定义表单校验信息的显示方式,参数为 { error } | + ### Form-Item Methods | 方法名 | 说明 | 参数 diff --git a/packages/form/src/form-item.vue b/packages/form/src/form-item.vue index 23f9ee77d..0bdbca61b 100644 --- a/packages/form/src/form-item.vue +++ b/packages/form/src/form-item.vue @@ -14,17 +14,21 @@