Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
6f2f7aed
Commit
6f2f7aed
authored
May 09, 2018
by
杨奕
Committed by
GitHub
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FormItem: add clearValidate (#11076)
parent
602afe03
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
examples/docs/en-US/form.md
examples/docs/en-US/form.md
+1
-0
examples/docs/es/form.md
examples/docs/es/form.md
+1
-0
examples/docs/zh-CN/form.md
examples/docs/zh-CN/form.md
+1
-0
types/form-item.d.ts
types/form-item.d.ts
+6
-0
No files found.
examples/docs/en-US/form.md
View file @
6f2f7aed
...
...
@@ -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 | -
examples/docs/es/form.md
View file @
6f2f7aed
...
...
@@ -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 | - |
examples/docs/zh-CN/form.md
View file @
6f2f7aed
...
...
@@ -872,3 +872,4 @@ W3C 标准中有如下[规定](https://www.w3.org/MarkUp/html-spec/html-spec_8.h
| 方法名 | 说明 | 参数
|---------- |-------------- | --------------
| resetField | 对该表单项进行重置,将其值重置为初始值并移除校验结果 | -
| clearValidate | 移除该表单项的校验结果 | -
types/form-item.d.ts
View file @
6f2f7aed
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment