enhance(client): make possible to close image dialog with click
Related #8023
This commit is contained in:
parent
f38b6a1806
commit
bcd188a0e0
2 changed files with 11 additions and 1 deletions
|
@ -53,7 +53,16 @@ export default defineComponent({
|
|||
gallery: gallery.value,
|
||||
children: '.image',
|
||||
thumbSelector: '.image',
|
||||
pswpModule: PhotoSwipe
|
||||
loop: false,
|
||||
padding: {
|
||||
top: 32,
|
||||
bottom: 32,
|
||||
left: 32,
|
||||
right: 32,
|
||||
},
|
||||
imageClickAction: 'close',
|
||||
tapAction: 'toggle-controls',
|
||||
pswpModule: PhotoSwipe,
|
||||
});
|
||||
|
||||
lightbox.on('itemData', (e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue