From e7bcd38124c11884c5b4bfc3044e3881467ae603 Mon Sep 17 00:00:00 2001 From: angela-1 Date: Sat, 14 Apr 2018 20:38:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=9E=E7=8E=B0Inputnumber=E5=9C=A8focus?= =?UTF-8?q?=E6=97=B6=E9=80=89=E4=B8=AD=E5=B7=B2=E6=9C=89=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/input-number/input-number.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/input-number/input-number.vue b/src/components/input-number/input-number.vue index 19005dce..bdd68dc1 100644 --- a/src/components/input-number/input-number.vue +++ b/src/components/input-number/input-number.vue @@ -250,9 +250,9 @@ this.dispatch('FormItem', 'on-form-change', val); }); }, - focus () { + focus (event) { this.focused = true; - this.$emit('on-focus'); + this.$emit('on-focus', event); }, blur () { this.focused = false; From 3d4fd6df5597f05ced6cc4041e82acfc6d35a734 Mon Sep 17 00:00:00 2001 From: angela-1 Date: Sat, 14 Apr 2018 21:45:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9C=A8safari=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E4=B8=AD=E9=9C=80=E8=A6=81=E5=8E=BB=E9=99=A4mouseup=E7=9A=84?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=A1=8C=E4=B8=BA=E6=89=8D=E8=83=BD=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E9=80=89=E4=B8=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/routers/input-number.vue | 5 +++++ src/components/input-number/input-number.vue | 1 + 2 files changed, 6 insertions(+) diff --git a/examples/routers/input-number.vue b/examples/routers/input-number.vue index e8a5913b..a3aceec7 100644 --- a/examples/routers/input-number.vue +++ b/examples/routers/input-number.vue @@ -48,6 +48,8 @@ + +