update Dropdown

update Dropdown
This commit is contained in:
梁灏 2016-12-04 00:38:57 +08:00
parent ab8aaf958a
commit 79633f3c02
4 changed files with 30 additions and 26 deletions

View file

@ -41,7 +41,9 @@
this.$parent.$parent.visible = true;
});
} else {
this.$parent.$parent.visible = false;
if (this.$parent.$parent.trigger === 'hover') {
this.$parent.$parent.visible = false;
}
}
this.$parent.$parent.$emit('on-click', this.key);
}