@fewangsit/wangsvue-fats 1.0.1-alpha.36 → 1.0.1-alpha.37
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/image/index.d.ts +6 -3
- package/image/index.es.js +8 -2
- package/package.json +1 -1
- package/stats.html +1 -1
- package/wangsvue-fats.esm.browser.js +8 -2
- package/wangsvue-fats.system.js +1 -1
|
@@ -19247,7 +19247,7 @@ const mL = ["src"], gL = ["src"], vL = ["src"], yL = ["src", "onClick"], Or = /*
|
|
|
19247
19247
|
}, p = K(() => e.width != null ? e.width : e.size === "small" ? 30 : e.size === "medium" ? 80 : 125), h = VP(
|
|
19248
19248
|
async () => {
|
|
19249
19249
|
var b, S;
|
|
19250
|
-
return !e.src || a.value ? i.value.placeholder : typeof e.src == "string" ? (e.src.includes("http") || // From public image
|
|
19250
|
+
return !e.src || a.value ? i.value.placeholder : typeof e.src == "string" ? (e.src.includes("http") || // From public image or ObjectURL from Blob e.g 'blob:http://localhost:5173/ca48705d-1fc1-4a74-af38-353ffce7e02a'
|
|
19251
19251
|
/^data:image\/[a-zA-Z0-9.+-]+;base64,/.test(e.src) ? e.src : await ((S = (b = i.value).getImageURL) == null ? void 0 : S.call(b, e.src, p.value))) || i.value.placeholder : e.src;
|
|
19252
19252
|
},
|
|
19253
19253
|
i.value.placeholder
|
|
@@ -19257,7 +19257,13 @@ const mL = ["src"], gL = ["src"], vL = ["src"], yL = ["src", "onClick"], Or = /*
|
|
|
19257
19257
|
if (m.value != null) return;
|
|
19258
19258
|
let b = h.value;
|
|
19259
19259
|
if (typeof b == "string") {
|
|
19260
|
-
const R = (y = (S = i.value).getImageURL) == null ? void 0 : y.call(
|
|
19260
|
+
const R = (y = (S = i.value).getImageURL) == null ? void 0 : y.call(
|
|
19261
|
+
S,
|
|
19262
|
+
"preview",
|
|
19263
|
+
void 0,
|
|
19264
|
+
void 0,
|
|
19265
|
+
!0
|
|
19266
|
+
), I = typeof R == "string" && !(R != null && R.includes("undefined")) ? new URL(R).origin : "", P = I && b.includes(I) || // For getImageURL that return the image full url
|
|
19261
19267
|
R instanceof Promise;
|
|
19262
19268
|
b = b.includes("http") && !P || // From public resource
|
|
19263
19269
|
b.includes("data:image/svg+xml") ? b : await ((M = (C = i.value).getImageURL) == null ? void 0 : M.call(C, e.src));
|