mirror of https://github.com/ElemeFE/element
Cascader: fixed hover unexpected
parent
7aa89a0dde
commit
3c8516d0a0
|
@ -81,7 +81,7 @@
|
||||||
} else {
|
} else {
|
||||||
this.activeValue = [item.value];
|
this.activeValue = [item.value];
|
||||||
}
|
}
|
||||||
this.$emit('pick', this.activeValue);
|
this.$emit('pick', this.activeValue.slice());
|
||||||
},
|
},
|
||||||
handleMenuLeave() {
|
handleMenuLeave() {
|
||||||
this.$emit('menuLeave');
|
this.$emit('menuLeave');
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
this.activeValue.splice(menuIndex, len, item.value);
|
this.activeValue.splice(menuIndex, len, item.value);
|
||||||
this.activeOptions.splice(menuIndex + 1, len, item.children);
|
this.activeOptions.splice(menuIndex + 1, len, item.children);
|
||||||
if (this.changeOnSelect) {
|
if (this.changeOnSelect) {
|
||||||
this.$emit('pick', this.activeValue, false);
|
this.$emit('pick', this.activeValue.slice(), false);
|
||||||
} else {
|
} else {
|
||||||
this.$emit('activeItemChange', this.activeValue);
|
this.$emit('activeItemChange', this.activeValue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue