Update input-number.vue
remove `on-enter` because excessive and inflexible
This commit is contained in:
parent
c21a814287
commit
a2a18a4600
1 changed files with 2 additions and 4 deletions
|
@ -238,12 +238,12 @@
|
|||
});
|
||||
},
|
||||
focus () {
|
||||
this.$emit('on-focus');
|
||||
this.focused = true;
|
||||
this.$emit('on-focus');
|
||||
},
|
||||
blur () {
|
||||
this.$emit('on-blur');
|
||||
this.focused = false;
|
||||
this.$emit('on-blur');
|
||||
},
|
||||
keyDown (e) {
|
||||
if (e.keyCode === 38) {
|
||||
|
@ -252,8 +252,6 @@
|
|||
} else if (e.keyCode === 40) {
|
||||
e.preventDefault();
|
||||
this.down(e);
|
||||
} else if (e.keyCode === 13) {
|
||||
this.$emit('on-enter');
|
||||
}
|
||||
},
|
||||
change (event) {
|
||||
|
|
Loading…
Add table
Reference in a new issue