From cd50d0d678e766cceb0b9f07729596c4170111d6 Mon Sep 17 00:00:00 2001 From: young Date: Tue, 14 Mar 2017 14:25:02 +0800 Subject: [PATCH] fix(input): all actions should emit event --- src/components/input/input.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/input/input.vue b/src/components/input/input.vue index baab0e3..13703c4 100644 --- a/src/components/input/input.vue +++ b/src/components/input/input.vue @@ -141,17 +141,17 @@ } }, methods: { - handleEnter () { - this.$emit('on-enter'); + handleEnter (event) { + this.$emit('on-enter', event); }, - handleIconClick () { - this.$emit('on-click'); + handleIconClick (event) { + this.$emit('on-click', event); }, - handleFocus () { - this.$emit('on-focus'); + handleFocus (event) { + this.$emit('on-focus', event); }, - handleBlur () { - this.$emit('on-blur'); + handleBlur (event) { + this.$emit('on-blur', event); if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader'])) { this.dispatch('FormItem', 'on-form-blur', this.currentValue); } -- libgit2 0.21.4