@fewangsit/wangsvue-fats 1.0.1-alpha.64 → 1.0.1-alpha.65
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 +11 -0
- package/image/index.es.js +86 -73
- package/package.json +1 -1
- package/stats.html +1 -1
- package/wangsvue-fats.esm.browser.js +20 -7
- package/wangsvue-fats.system.js +1 -1
|
@@ -26056,7 +26056,9 @@ const Q$ = ["src"], eV = ["src"], tV = ["src"], nV = ["src", "onClick"], Er = /*
|
|
|
26056
26056
|
ptOptions: {},
|
|
26057
26057
|
unstyled: { type: Boolean },
|
|
26058
26058
|
getImageURL: {},
|
|
26059
|
-
placeholder: {}
|
|
26059
|
+
placeholder: {},
|
|
26060
|
+
useDefaultSize: { type: Boolean, default: !0 },
|
|
26061
|
+
thumbnailSize: {}
|
|
26060
26062
|
},
|
|
26061
26063
|
setup(t) {
|
|
26062
26064
|
const e = t, { defaultProps: n } = un("Image"), i = G(() => pr(e, n));
|
|
@@ -26085,7 +26087,12 @@ const Q$ = ["src"], eV = ["src"], tV = ["src"], nV = ["src", "onClick"], Er = /*
|
|
|
26085
26087
|
}, 3e3));
|
|
26086
26088
|
}, p = () => {
|
|
26087
26089
|
s.value && (window.clearInterval(s.value), s.value = void 0);
|
|
26088
|
-
}, h = G(() =>
|
|
26090
|
+
}, h = G(() => {
|
|
26091
|
+
if (e.width != null) return e.width;
|
|
26092
|
+
if (e.size === "small") return 30;
|
|
26093
|
+
if (e.size === "medium") return 80;
|
|
26094
|
+
if (e.useDefaultSize) return 125;
|
|
26095
|
+
}), m = S$(
|
|
26089
26096
|
async () => {
|
|
26090
26097
|
var S, y;
|
|
26091
26098
|
if (!e.src || a.value) return i.value.placeholder;
|
|
@@ -26142,11 +26149,17 @@ const Q$ = ["src"], eV = ["src"], tV = ["src"], nV = ["src", "onClick"], Er = /*
|
|
|
26142
26149
|
image: K(() => {
|
|
26143
26150
|
var M;
|
|
26144
26151
|
return [
|
|
26145
|
-
E("img", k(
|
|
26146
|
-
|
|
26147
|
-
|
|
26148
|
-
|
|
26149
|
-
|
|
26152
|
+
E("img", k(
|
|
26153
|
+
(M = S.$preset.image) == null ? void 0 : M.image({
|
|
26154
|
+
props: S.$props,
|
|
26155
|
+
context: { imageSize: h.value ?? S.thumbnailSize }
|
|
26156
|
+
}),
|
|
26157
|
+
{
|
|
26158
|
+
onerror: T,
|
|
26159
|
+
src: x(m),
|
|
26160
|
+
alt: ""
|
|
26161
|
+
}
|
|
26162
|
+
), null, 16, Q$)
|
|
26150
26163
|
];
|
|
26151
26164
|
}),
|
|
26152
26165
|
indicatoricon: K(() => [
|