@elmethis/qwik 0.0.35 → 0.0.36
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.
- package/lib/index.qwik.cjs +7 -0
- package/lib/index.qwik.mjs +7 -0
- package/package.json +1 -1
package/lib/index.qwik.cjs
CHANGED
|
@@ -2224,7 +2224,14 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
2224
2224
|
isShowModal.value = !isShowModal.value;
|
|
2225
2225
|
}
|
|
2226
2226
|
});
|
|
2227
|
+
const imgRef = qwik.useSignal();
|
|
2228
|
+
qwik.useVisibleTask$(() => {
|
|
2229
|
+
imgRef.value.decode().then(() => {
|
|
2230
|
+
isLoading.value = false;
|
|
2231
|
+
});
|
|
2232
|
+
});
|
|
2227
2233
|
const ImageComponent = /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
2234
|
+
ref: imgRef,
|
|
2228
2235
|
class: styles$h.image,
|
|
2229
2236
|
src,
|
|
2230
2237
|
alt: alt ?? caption2 ?? "Image",
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -2222,7 +2222,14 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
|
|
|
2222
2222
|
isShowModal.value = !isShowModal.value;
|
|
2223
2223
|
}
|
|
2224
2224
|
});
|
|
2225
|
+
const imgRef = useSignal();
|
|
2226
|
+
useVisibleTask$(() => {
|
|
2227
|
+
imgRef.value.decode().then(() => {
|
|
2228
|
+
isLoading.value = false;
|
|
2229
|
+
});
|
|
2230
|
+
});
|
|
2225
2231
|
const ImageComponent = /* @__PURE__ */ jsx("img", {
|
|
2232
|
+
ref: imgRef,
|
|
2226
2233
|
class: styles$h.image,
|
|
2227
2234
|
src,
|
|
2228
2235
|
alt: alt ?? caption2 ?? "Image",
|