Form add @on-validate event
This commit is contained in:
parent
cd4b085967
commit
a91ea49820
1 changed files with 2 additions and 0 deletions
|
@ -203,6 +203,8 @@
|
|||
this.validateMessage = errors ? errors[0].message : '';
|
||||
|
||||
callback(this.validateMessage);
|
||||
|
||||
this.form && this.form.$emit('on-validate', this.prop, !errors, this.validateMessage || null)
|
||||
});
|
||||
this.validateDisabled = false;
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue