Commit 33c99d8a authored by baiyaaaaa's avatar baiyaaaaa

fix dropdown menu visible bug

parent 9cec78ce
......@@ -11,7 +11,7 @@
methods: {
handleClick(e) {
this.dispatch('ElDropdownMenu', 'visible', [false]);
this.dispatch('ElDropdown', 'visible', [false]);
}
}
};
......
......@@ -5,6 +5,8 @@
export default {
name: 'ElDropdown',
componentName: 'ElDropdown',
mixins: [Emitter],
directives: { Clickoutside },
......@@ -31,6 +33,7 @@
},
mounted() {
this.$on('visible', value => { this.visible = value; });
this.initEvent();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment