Update SpeedDial.vue

pull/1544/head
thomaswan 2021-09-15 19:41:13 +08:00 committed by GitHub
parent 7e3f17c4a3
commit 887b635a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -103,12 +103,13 @@ export default {
this.list.style.setProperty('--item-diff-y', `${hDiff / 2}px`);
}
}
},
beforeMount() {
if (this.hideOnClickOutside) {
this.bindDocumentClickListener();
}
},
beforeMount() {
this.unbindDocumentClickListener();
},
methods: {
onItemClick(e, item) {
if (item.command) {