Commit cd50d0d678e766cceb0b9f07729596c4170111d6
1 parent
1be50b78
fix(input): all actions should emit event
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
src/components/input/input.vue
| ... | ... | @@ -141,17 +141,17 @@ |
| 141 | 141 | } |
| 142 | 142 | }, |
| 143 | 143 | methods: { |
| 144 | - handleEnter () { | |
| 145 | - this.$emit('on-enter'); | |
| 144 | + handleEnter (event) { | |
| 145 | + this.$emit('on-enter', event); | |
| 146 | 146 | }, |
| 147 | - handleIconClick () { | |
| 148 | - this.$emit('on-click'); | |
| 147 | + handleIconClick (event) { | |
| 148 | + this.$emit('on-click', event); | |
| 149 | 149 | }, |
| 150 | - handleFocus () { | |
| 151 | - this.$emit('on-focus'); | |
| 150 | + handleFocus (event) { | |
| 151 | + this.$emit('on-focus', event); | |
| 152 | 152 | }, |
| 153 | - handleBlur () { | |
| 154 | - this.$emit('on-blur'); | |
| 153 | + handleBlur (event) { | |
| 154 | + this.$emit('on-blur', event); | |
| 155 | 155 | if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader'])) { |
| 156 | 156 | this.dispatch('FormItem', 'on-form-blur', this.currentValue); |
| 157 | 157 | } | ... | ... |