chore: improve watcher
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user