⬆️ Chore(libs): update lightgallery from 1.4.0 to 2.6.0

This commit is contained in:
Cell
2022-09-03 11:38:56 +08:00
parent b4982b34e4
commit 2b36f0ce88
30 changed files with 73 additions and 58 deletions
+15 -1
View File
@@ -401,7 +401,21 @@ class FixIt {
}
initLightGallery() {
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() {