feat(Form): add resetValidation method
This commit is contained in:
@@ -67,6 +67,13 @@ export default createComponent({
|
||||
return this.validateFirst ? this.validateSeq() : this.validateAll();
|
||||
},
|
||||
|
||||
// @exposed-api
|
||||
resetValidation() {
|
||||
this.fields.forEach(item => {
|
||||
item.resetValidation();
|
||||
});
|
||||
},
|
||||
|
||||
getValues() {
|
||||
return this.fields.reduce((form, field) => {
|
||||
form[field.name] = field.formValue;
|
||||
|
||||
Reference in New Issue
Block a user