feat(Form): add submit method

This commit is contained in:
陈嘉涵
2020-02-13 15:43:11 +08:00
parent 7b200d0053
commit fbe3d20558
3 changed files with 6 additions and 0 deletions

View File

@@ -106,7 +106,11 @@ export default createComponent({
onSubmit(event) {
event.preventDefault();
this.submit();
},
// @exposed-api
submit() {
const values = this.getValues();
this.validate()