added dismissable watch
parent
cdb1449f44
commit
0b511f8000
|
@ -57,6 +57,15 @@ export default {
|
|||
visible: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
dismissable(newValue) {
|
||||
if (newValue) {
|
||||
this.bindOutsideClickListener();
|
||||
} else {
|
||||
this.unbindOutsideClickListener();
|
||||
}
|
||||
}
|
||||
},
|
||||
selfClick: false,
|
||||
target: null,
|
||||
eventTarget: null,
|
||||
|
|
Loading…
Reference in New Issue