chore: improve watcher

This commit is contained in:
陈嘉涵
2020-01-18 10:58:12 +08:00
parent f928063d6a
commit c895bf1739
6 changed files with 14 additions and 16 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ export default createComponent({
},
watch: {
show() {
show(val) {
if (!this.transition) {
this.$emit(this.show ? 'show' : 'hide');
this.$emit(val ? 'show' : 'hide');
}
}
},