Commit 33c99d8a authored by baiyaaaaa's avatar baiyaaaaa

fix dropdown menu visible bug

parent 9cec78ce
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
methods: { methods: {
handleClick(e) { handleClick(e) {
this.dispatch('ElDropdownMenu', 'visible', [false]); this.dispatch('ElDropdown', 'visible', [false]);
} }
} }
}; };
......
...@@ -5,6 +5,8 @@ ...@@ -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 @@ ...@@ -31,6 +33,7 @@
}, },
mounted() { mounted() {
this.$on('visible', value => { this.visible = value; });
this.initEvent(); 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