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

View File

@@ -12,6 +12,10 @@ export default createComponent({
scrollToError: Boolean,
validateFirst: Boolean,
errorMessageAlign: String,
submitOnEnter: {
type: Boolean,
default: true,
},
validateTrigger: {
type: String,
default: 'onBlur',