fix(input): all actions should emit event

This commit is contained in:
young 2017-03-14 14:25:02 +08:00
parent 1be50b786f
commit cd50d0d678

View file

@ -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);
}