chore(lib): update lightgallery 1.2.0 -> 2.4.0

This commit is contained in:
Dillon
2022-05-12 05:35:34 +08:00
parent 5e9c5f6417
commit 8a9df9b02f
28 changed files with 90 additions and 60 deletions

View File

@@ -325,7 +325,19 @@ class Theme {
}
initLightGallery() {
if (this.config.lightGallery) lightGallery(document.getElementById('content'), this.config.lightGallery);
if (this.config.lightgallery) lightGallery(document.getElementById('content'), {
plugins: [lgThumbnail, lgZoom],
selector: '.lightgallery',
speed: 400,
hideBarsDelay: 2000,
allowMediaOverlap: true,
exThumbImage: 'data-thumbnail',
toggleThumb: true,
thumbWidth: 80,
thumbHeight: '60px',
actualSize: false,
showZoomInOutIcons: true,
});
}
initHighlight() {