comand-component-library 3.3.58 → 3.3.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1942,7 +1942,7 @@ const Il = {
|
|
|
1942
1942
|
this.allowOpenFancyBox && Mt({ fancyBoxGallery: this.items, defaultGalleryIndex: e }), this.emitCurrentItemId(e);
|
|
1943
1943
|
},
|
|
1944
1944
|
emitCurrentItemId(e) {
|
|
1945
|
-
this.$emit("click", this.items[e].id);
|
|
1945
|
+
this.$emit("click", this.items[e].image.id);
|
|
1946
1946
|
},
|
|
1947
1947
|
executeLink(e, i) {
|
|
1948
1948
|
this.executeOnClick === "emit" ? (i.preventDefault(), this.emitCurrentItemId(e)) : this.executeOnClick === "fancybox" && (i.preventDefault(), this.showFancyBox(e));
|
|
@@ -1953,7 +1953,7 @@ const Il = {
|
|
|
1953
1953
|
handler() {
|
|
1954
1954
|
this.items = this.thumbnailScrollerItems.map((e) => {
|
|
1955
1955
|
let i;
|
|
1956
|
-
return this.contentType === "image" ? (i = { image: { ...e.image }, figcaption: { ...e.figcaption } }, i.image.src = i.image.srcImageSmall) : i = { ...e }, i;
|
|
1956
|
+
return this.contentType === "image" ? (i = { image: { ...e.image }, figcaption: { ...e.figcaption } }, i.image.srcImageSmall && (i.image.src = i.image.srcImageSmall)) : i = { ...e }, i;
|
|
1957
1957
|
});
|
|
1958
1958
|
},
|
|
1959
1959
|
immediate: !0
|
|
@@ -2204,7 +2204,7 @@ const Mt = (e) => {
|
|
|
2204
2204
|
},
|
|
2205
2205
|
showItem(e) {
|
|
2206
2206
|
for (let i = 0; i < this.fancyBoxGallery.length; i++)
|
|
2207
|
-
if (this.fancyBoxGallery[i].id === e) {
|
|
2207
|
+
if (this.fancyBoxGallery[i].image.id === e) {
|
|
2208
2208
|
this.index = i;
|
|
2209
2209
|
break;
|
|
2210
2210
|
}
|
|
@@ -2373,8 +2373,8 @@ function Wl(e, i, t, a, n, s) {
|
|
|
2373
2373
|
thumbnailScrollerItems: [...e.fancyBoxGallery],
|
|
2374
2374
|
allowOpenFancyBox: !1,
|
|
2375
2375
|
onClick: e.showItem,
|
|
2376
|
-
|
|
2377
|
-
}, null, 8, ["thumbnailScrollerItems", "onClick", "
|
|
2376
|
+
activeItemIndex: e.index
|
|
2377
|
+
}, null, 8, ["thumbnailScrollerItems", "onClick", "activeItemIndex"])) : m("", !0)
|
|
2378
2378
|
], 42, Nl)
|
|
2379
2379
|
]);
|
|
2380
2380
|
}
|