diff --git a/dist/vue-silentbox.esm.js b/dist/vue-silentbox.esm.js
index 5703e20..e116d00 100644
--- a/dist/vue-silentbox.esm.js
+++ b/dist/vue-silentbox.esm.js
@@ -514,7 +514,7 @@ var script$1 = {
return {
src: '',
alt: '',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
thumbnailHeight: 'auto',
thumbnail: '',
autoplay: false,
@@ -554,7 +554,7 @@ var script$1 = {
item: {
src: '',
alt: '',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
thumbnailHeight: 'auto',
thumbnail: '',
autoplay: false,
@@ -661,15 +661,22 @@ var __vue_render__$1 = function() {
}
},
[
- _c("img", {
- attrs: {
- src: image.thumbnail,
- alt: image.alt,
- width: image.thumbnailWidth,
- height: image.thumbnailHeight
- }
- })
- ]
+ _vm._t(
+ "silentbox-item",
+ [
+ _c("img", {
+ attrs: {
+ src: image.thumbnail,
+ alt: image.alt,
+ width: image.thumbnailWidth,
+ height: image.thumbnailHeight
+ }
+ })
+ ],
+ { silentboxItem: image }
+ )
+ ],
+ 2
)
}),
_vm._v(" "),
@@ -677,7 +684,7 @@ var __vue_render__$1 = function() {
attrs: {
"overlay-item": _vm.overlay.item,
visible: _vm.overlay.visible,
- "total-items": _vm.overlay.totalItems
+ "total-items": _vm.totalItems
},
on: {
closeSilentboxOverlay: _vm.hideOverlay,
@@ -695,7 +702,7 @@ __vue_render__$1._withStripped = true;
/* style */
const __vue_inject_styles__$1 = function (inject) {
if (!inject) return
- inject("data-v-422c39d4_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAkKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;ACjKA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined });
+ inject("data-v-7f05ba59_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAuKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;ACtKA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined });
};
/* scoped */
diff --git a/dist/vue-silentbox.min.js b/dist/vue-silentbox.min.js
index d3ee162..70ade98 100644
--- a/dist/vue-silentbox.min.js
+++ b/dist/vue-silentbox.min.js
@@ -517,7 +517,7 @@ var VueSilentbox = (function (exports) {
return {
src: '',
alt: '',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
thumbnailHeight: 'auto',
thumbnail: '',
autoplay: false,
@@ -557,7 +557,7 @@ var VueSilentbox = (function (exports) {
item: {
src: '',
alt: '',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
thumbnailHeight: 'auto',
thumbnail: '',
autoplay: false,
@@ -664,15 +664,22 @@ var VueSilentbox = (function (exports) {
}
},
[
- _c("img", {
- attrs: {
- src: image.thumbnail,
- alt: image.alt,
- width: image.thumbnailWidth,
- height: image.thumbnailHeight
- }
- })
- ]
+ _vm._t(
+ "silentbox-item",
+ [
+ _c("img", {
+ attrs: {
+ src: image.thumbnail,
+ alt: image.alt,
+ width: image.thumbnailWidth,
+ height: image.thumbnailHeight
+ }
+ })
+ ],
+ { silentboxItem: image }
+ )
+ ],
+ 2
)
}),
_vm._v(" "),
@@ -680,7 +687,7 @@ var VueSilentbox = (function (exports) {
attrs: {
"overlay-item": _vm.overlay.item,
visible: _vm.overlay.visible,
- "total-items": _vm.overlay.totalItems
+ "total-items": _vm.totalItems
},
on: {
closeSilentboxOverlay: _vm.hideOverlay,
@@ -698,7 +705,7 @@ var VueSilentbox = (function (exports) {
/* style */
const __vue_inject_styles__$1 = function (inject) {
if (!inject) return
- inject("data-v-422c39d4_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAkKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;ACjKA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined });
+ inject("data-v-7f05ba59_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAuKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;ACtKA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined });
};
/* scoped */
diff --git a/dist/vue-silentbox.umd.js b/dist/vue-silentbox.umd.js
index 346e755..4f818f7 100644
--- a/dist/vue-silentbox.umd.js
+++ b/dist/vue-silentbox.umd.js
@@ -520,7 +520,7 @@
return {
src: '',
alt: '',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
thumbnailHeight: 'auto',
thumbnail: '',
autoplay: false,
@@ -560,7 +560,7 @@
item: {
src: '',
alt: '',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
thumbnailHeight: 'auto',
thumbnail: '',
autoplay: false,
@@ -667,15 +667,22 @@
}
},
[
- _c("img", {
- attrs: {
- src: image.thumbnail,
- alt: image.alt,
- width: image.thumbnailWidth,
- height: image.thumbnailHeight
- }
- })
- ]
+ _vm._t(
+ "silentbox-item",
+ [
+ _c("img", {
+ attrs: {
+ src: image.thumbnail,
+ alt: image.alt,
+ width: image.thumbnailWidth,
+ height: image.thumbnailHeight
+ }
+ })
+ ],
+ { silentboxItem: image }
+ )
+ ],
+ 2
)
}),
_vm._v(" "),
@@ -683,7 +690,7 @@
attrs: {
"overlay-item": _vm.overlay.item,
visible: _vm.overlay.visible,
- "total-items": _vm.overlay.totalItems
+ "total-items": _vm.totalItems
},
on: {
closeSilentboxOverlay: _vm.hideOverlay,
@@ -701,7 +708,7 @@
/* style */
const __vue_inject_styles__$1 = function (inject) {
if (!inject) return
- inject("data-v-422c39d4_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAkKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;ACjKA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined });
+ inject("data-v-7f05ba59_0", { source: ".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */", map: {"version":3,"sources":["/Users/silencesys/Projects/Silencesys/silentbox-website/src/Silentbox/src/components/gallery.vue","gallery.vue"],"names":[],"mappings":"AAuKA;EACA,eAAA;EACA,qBAAA;EACA,0BAAA;ACtKA;;AAEA,sCAAsC","file":"gallery.vue","sourcesContent":["\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n",".silentbox-item {\n cursor: pointer;\n display: inline-block;\n text-decoration: underline;\n}\n\n/*# sourceMappingURL=gallery.vue.map */"]}, media: undefined });
};
/* scoped */
diff --git a/tests/components/gallery.test.js b/tests/components/gallery.test.js
index 4cde3b7..f4eacd9 100644
--- a/tests/components/gallery.test.js
+++ b/tests/components/gallery.test.js
@@ -17,7 +17,7 @@ describe('components/Gallery.vue', () => {
src: 'image.jpg',
thumbnail: 'image.jpg',
thumbnailHeight: 'auto',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
description: 'This is my amazing image!'
}
]
@@ -43,7 +43,7 @@ describe('components/Gallery.vue', () => {
src: 'image.jpg',
thumbnail: 'image.jpg',
thumbnailHeight: 'auto',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
description: 'This is my amazing image!'
}, {
alt: '',
@@ -52,7 +52,7 @@ describe('components/Gallery.vue', () => {
src: 'image2.jpg',
thumbnail: 'image2-thumb.jpg',
thumbnailHeight: 'auto',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
description: ''
}
]
@@ -90,7 +90,7 @@ describe('components/Gallery.vue', () => {
src: 'image.jpg',
thumbnail: 'image.jpg',
thumbnailHeight: 'auto',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
description: 'This is my amazing image!'
}
@@ -108,7 +108,7 @@ describe('components/Gallery.vue', () => {
src: 'image.jpg',
thumbnail: 'image.jpg',
thumbnailHeight: 'auto',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
description: 'This is my amazing image!'
}
@@ -128,7 +128,7 @@ describe('components/Gallery.vue', () => {
src: 'image.jpg',
thumbnail: 'image.jpg',
thumbnailHeight: 'auto',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
description: 'This is my amazing image!'
}
@@ -146,7 +146,7 @@ describe('components/Gallery.vue', () => {
src: 'image.jpg',
thumbnail: 'image.jpg',
thumbnailHeight: 'auto',
- thumbnailWidth: '200px',
+ thumbnailWidth: 'auto',
description: 'This is my amazing image!'
}