fix dropdown menu visible bug

pull/694/head
baiyaaaaa 2016-10-28 10:54:01 +08:00
parent 9cec78ce04
commit 33c99d8ab8
2 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,7 @@
methods: { methods: {
handleClick(e) { handleClick(e) {
this.dispatch('ElDropdownMenu', 'visible', [false]); this.dispatch('ElDropdown', 'visible', [false]);
} }
} }
}; };

View File

@ -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();
}, },