mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 19:57:48 +08:00
FormItem: add clearValidate (#11076)
This commit is contained in:
parent
602afe0364
commit
6f2f7aed47
@ -884,3 +884,4 @@ All components in a Form inherit their `size` attribute from that Form. Similarl
|
||||
| Method | Description | Parameters |
|
||||
| ---- | ---- | ---- |
|
||||
| resetField | reset current field and remove validation result | — |
|
||||
| clearValidate | remove validation status of the field | -
|
||||
|
@ -889,3 +889,4 @@ Todos los componentes de un formulario heredan su atributo `size`. De manera sim
|
||||
| Metodo | Descripción | Parametros |
|
||||
| ---------- | ---------------------------------------- | ---------- |
|
||||
| resetField | restablecer campo actual y eliminar resultado de validación | — |
|
||||
| clearValidate | remove validation status of the field | - |
|
||||
|
@ -872,3 +872,4 @@ W3C 标准中有如下[规定](https://www.w3.org/MarkUp/html-spec/html-spec_8.h
|
||||
| 方法名 | 说明 | 参数
|
||||
|---------- |-------------- | --------------
|
||||
| resetField | 对该表单项进行重置,将其值重置为初始值并移除校验结果 | -
|
||||
| clearValidate | 移除该表单项的校验结果 | -
|
||||
|
6
types/form-item.d.ts
vendored
6
types/form-item.d.ts
vendored
@ -28,4 +28,10 @@ export declare class ElFormItem extends ElementUIComponent {
|
||||
|
||||
/** Controls the size of components in this form */
|
||||
size: ElementUIComponentSize
|
||||
|
||||
/** Reset current field and remove validation result */
|
||||
resetField (): void
|
||||
|
||||
/** Remove validation status of the field */
|
||||
clearValidate (): void
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user