added dismissable watch

pull/2541/head
Shay Yzhakov 2022-05-15 12:38:10 +03:00
parent cdb1449f44
commit 0b511f8000
1 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,15 @@ export default {
visible: false
}
},
watch: {
dismissable(newValue) {
if (newValue) {
this.bindOutsideClickListener();
} else {
this.unbindOutsideClickListener();
}
}
},
selfClick: false,
target: null,
eventTarget: null,