feat(Form): add submit-on-enter prop (#6336)

This commit is contained in:
neverland
2020-05-21 19:21:49 +08:00
committed by GitHub
parent 96ef2557c2
commit 877ebd6054
4 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -434,6 +434,7 @@ export default {
| scroll-to-error `v2.5.2` | Whether to scroll to the error field when validation failed | _boolean_ | `false` |
| show-error `v2.6.0` | Whether to highlight input when validation failed | _boolean_ | `true` |
| show-error-message `v2.5.8` | Whether to show error message when validation failed | _boolean_ | `true` |
| submit-on-enter `v2.8.3` | Whether to submit form on enter | _boolean_ | `true` |
### Data Structure of Rule
@@ -462,7 +463,7 @@ Use [ref](https://vuejs.org/v2/api/#ref) to get Form instance and call instance
| submit | Submit form | - | - |
| validate | Validate form | _name?: string_ | _Promise_ |
| resetValidation | Reset validation | _name?: string_ | - |
| scrollToField `v2.8.2` | Scroll to field | _name: string, alignToTop: boolean_ | - |
| scrollToField `v2.8.3` | Scroll to field | _name: string, alignToTop: boolean_ | - |
### Slots