Merge branch 'develop' of ***REMOVED*** into develop

This commit is contained in:
07akioni 2020-06-05 23:27:48 +08:00
commit e67a2b65e9
4 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# CHANGELOG
## PENDING (2020-06-05)
## 1.3.5 (2020-06-05)
### Fixes
- Fix the problem that the default behavior of enter keyboard operation when the `input` is under the `n-form` will cause the adjacent `button` to be triggered.
## 1.3.4 (2020-06-05)
### Fixes
- Fix the problem that `n-a`'s `to` prop can't be a object.

View File

@ -1,5 +1,10 @@
# CHANGELOG
## PENDING (2020-06-05)
## 1.3.5 (2020-06-05)
### Fixes
- 修正了 `input` 在`n-form` 下时回车键盘操作的默认行为会导致临近的 `button` 被触发的问题
## 1.3.4 (2020-06-05)
### Fixes
- 修正了 `n-a``to` 属性不能为对象的问题

View File

@ -1,6 +1,6 @@
{
"name": "naive-ui",
"version": "1.3.3",
"version": "1.3.4",
"description": "A Vue UI Framework. Caring About Styles, Themed, Batteries Included, Not Rather Slow.",
"main": "lib/index.js",
"module": "es/index.js",

View File

@ -5,6 +5,7 @@
'n-form--inline': inline
}"
@submit="onSubmit"
@keydown.enter.prevent="handleEnterKeyDown"
>
<slot />
</form>
@ -113,6 +114,11 @@ export default {
formItemInstance.clearValidationEffect()
}
}
},
handleEnterKeyDown (e) {
if (e.target.tagName === 'INPUT') {
this.onSubmit(e)
}
}
}
}