mirror of https://github.com/ElemeFE/element
fix dropdown menu visible bug
parent
9cec78ce04
commit
33c99d8ab8
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handleClick(e) {
|
handleClick(e) {
|
||||||
this.dispatch('ElDropdownMenu', 'visible', [false]);
|
this.dispatch('ElDropdown', 'visible', [false]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'ElDropdown',
|
name: 'ElDropdown',
|
||||||
|
|
||||||
|
componentName: 'ElDropdown',
|
||||||
|
|
||||||
mixins: [Emitter],
|
mixins: [Emitter],
|
||||||
|
|
||||||
directives: { Clickoutside },
|
directives: { Clickoutside },
|
||||||
|
@ -31,6 +33,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.$on('visible', value => { this.visible = value; });
|
||||||
this.initEvent();
|
this.initEvent();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue