Commit 6b2af1b6c10cb538e557e2d5625be6d3af9c69d2

Authored by Aresn
Committed by GitHub
2 parents 593742af a2a18a46

Merge pull request #2377 from btfrankenstein/2.0

feat($input-number): add events 'on-focus', 'on-blur', 'on-enter' for…
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/components/input-number/input-number.vue
@@ -239,9 +239,11 @@ @@ -239,9 +239,11 @@
239 }, 239 },
240 focus () { 240 focus () {
241 this.focused = true; 241 this.focused = true;
  242 + this.$emit('on-focus');
242 }, 243 },
243 blur () { 244 blur () {
244 this.focused = false; 245 this.focused = false;
  246 + this.$emit('on-blur');
245 }, 247 },
246 keyDown (e) { 248 keyDown (e) {
247 if (e.keyCode === 38) { 249 if (e.keyCode === 38) {