fix(input): all actions should emit event
This commit is contained in:
parent
1be50b786f
commit
cd50d0d678
1 changed files with 8 additions and 8 deletions
|
@ -141,17 +141,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleEnter () {
|
handleEnter (event) {
|
||||||
this.$emit('on-enter');
|
this.$emit('on-enter', event);
|
||||||
},
|
},
|
||||||
handleIconClick () {
|
handleIconClick (event) {
|
||||||
this.$emit('on-click');
|
this.$emit('on-click', event);
|
||||||
},
|
},
|
||||||
handleFocus () {
|
handleFocus (event) {
|
||||||
this.$emit('on-focus');
|
this.$emit('on-focus', event);
|
||||||
},
|
},
|
||||||
handleBlur () {
|
handleBlur (event) {
|
||||||
this.$emit('on-blur');
|
this.$emit('on-blur', event);
|
||||||
if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader'])) {
|
if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader'])) {
|
||||||
this.dispatch('FormItem', 'on-form-blur', this.currentValue);
|
this.dispatch('FormItem', 'on-form-blur', this.currentValue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue