mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
Merge branch 'develop' of ***REMOVED*** into develop
This commit is contained in:
commit
e67a2b65e9
@ -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.
|
||||
|
||||
|
@ -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` 属性不能为对象的问题
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user