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 () {
|
focus () {
|
||||||
this.$emit('on-focus');
|
|
||||||
this.focused = true;
|
this.focused = true;
|
||||||
|
this.$emit('on-focus');
|
||||||
},
|
},
|
||||||
blur () {
|
blur () {
|
||||||
this.$emit('on-blur');
|
|
||||||
this.focused = false;
|
this.focused = false;
|
||||||
|
this.$emit('on-blur');
|
||||||
},
|
},
|
||||||
keyDown (e) {
|
keyDown (e) {
|
||||||
if (e.keyCode === 38) {
|
if (e.keyCode === 38) {
|
||||||
|
@ -252,8 +252,6 @@
|
||||||
} else if (e.keyCode === 40) {
|
} else if (e.keyCode === 40) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.down(e);
|
this.down(e);
|
||||||
} else if (e.keyCode === 13) {
|
|
||||||
this.$emit('on-enter');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
change (event) {
|
change (event) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue