This commit is contained in:
msidolphin 2019-04-18 00:10:16 +08:00
parent 76bb10c978
commit 2c2d2fd465

View file

@ -275,12 +275,15 @@
this.focused = true; this.focused = true;
this.$emit('on-focus', event); this.$emit('on-focus', event);
}, },
blur () { blur (e) {
this.focused = false; this.focused = false;
this.$emit('on-blur'); this.$emit('on-blur');
if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) { if (!findComponentUpward(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) {
this.dispatch('FormItem', 'on-form-blur', this.currentValue); this.dispatch('FormItem', 'on-form-blur', this.currentValue);
} }
if (!this.activeChange) {
this.change(e)
}
}, },
keyDown (e) { keyDown (e) {
if (e.keyCode === 38) { if (e.keyCode === 38) {