mirror of https://github.com/ElemeFE/element
Cascader: fix z-index not increasing issue (#3035)
parent
067541e8d9
commit
82a3685138
|
@ -211,6 +211,7 @@ export default {
|
||||||
this.popperElm = this.menu.$el;
|
this.popperElm = this.menu.$el;
|
||||||
this.menu.$on('pick', this.handlePick);
|
this.menu.$on('pick', this.handlePick);
|
||||||
this.menu.$on('activeItemChange', this.handleActiveItemChange);
|
this.menu.$on('activeItemChange', this.handleActiveItemChange);
|
||||||
|
this.menu.$on('menuLeave', this.doDestroy);
|
||||||
},
|
},
|
||||||
showMenu() {
|
showMenu() {
|
||||||
if (!this.menu) {
|
if (!this.menu) {
|
||||||
|
|
|
@ -78,6 +78,9 @@
|
||||||
}
|
}
|
||||||
this.$emit('pick', this.activeValue);
|
this.$emit('pick', this.activeValue);
|
||||||
},
|
},
|
||||||
|
handleMenuLeave() {
|
||||||
|
this.$emit('menuLeave');
|
||||||
|
},
|
||||||
activeItem(item, menuIndex) {
|
activeItem(item, menuIndex) {
|
||||||
const len = this.activeOptions.length;
|
const len = this.activeOptions.length;
|
||||||
this.activeValue.splice(menuIndex, len, item.value);
|
this.activeValue.splice(menuIndex, len, item.value);
|
||||||
|
@ -151,7 +154,7 @@
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<transition name="el-zoom-in-top">
|
<transition name="el-zoom-in-top" on-after-leave={this.handleMenuLeave}>
|
||||||
<div
|
<div
|
||||||
v-show={visible}
|
v-show={visible}
|
||||||
class={[
|
class={[
|
||||||
|
|
Loading…
Reference in New Issue