Commit 6a9263e19850f93546ffc86f075ff4cef29126e6
Committed by
GitHub
Merge pull request #1837 from lepture/patch-1
Rollback #968
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
src/components/form/form.vue
1 | 1 | <template> |
2 | - <form :class="classes" @submit="formSubmit"><slot></slot></form> | |
2 | + <form :class="classes"><slot></slot></form> | |
3 | 3 | </template> |
4 | 4 | <script> |
5 | 5 | // https://github.com/ElemeFE/element/blob/dev/packages/form/src/form.vue |
... | ... | @@ -75,9 +75,6 @@ |
75 | 75 | if (!field) { throw new Error('[iView warn]: must call validateField with valid prop string!'); } |
76 | 76 | |
77 | 77 | field.validate('', cb); |
78 | - }, | |
79 | - formSubmit (event) { | |
80 | - event.preventDefault(); | |
81 | 78 | } |
82 | 79 | }, |
83 | 80 | watch: { | ... | ... |