diff --git a/src/components/input-number/input-number.vue b/src/components/input-number/input-number.vue index 8472fcf..437d6ab 100644 --- a/src/components/input-number/input-number.vue +++ b/src/components/input-number/input-number.vue @@ -238,9 +238,11 @@ }); }, focus () { + this.$emit('on-focus'); this.focused = true; }, blur () { + this.$emit('on-blur'); this.focused = false; }, keyDown (e) { @@ -250,6 +252,8 @@ } else if (e.keyCode === 40) { e.preventDefault(); this.down(e); + } else if (e.keyCode === 13) { + this.$emit('on-enter'); } }, change (event) { -- libgit2 0.21.4