@fastkit/vui 0.18.34 → 0.19.1
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/dist/vui.css +57 -62
- package/dist/vui.d.ts +470 -421
- package/dist/vui.mjs +9 -4
- package/dist/vui.mjs.map +1 -1
- package/package.json +27 -27
- package/src/components/VBusyImage/VBusyImage.tsx +11 -5
package/dist/vui.mjs
CHANGED
|
@@ -975,16 +975,20 @@ var VBusyImage = defineComponent({
|
|
|
975
975
|
return styles;
|
|
976
976
|
});
|
|
977
977
|
let booted = false;
|
|
978
|
-
|
|
978
|
+
const mounted = ref(false);
|
|
979
|
+
watch(() => [ctx.attrs.src, mounted.value], ([src, _mounted]) => {
|
|
980
|
+
if (!_mounted)
|
|
981
|
+
return;
|
|
979
982
|
coverImageRef.value = void 0;
|
|
980
|
-
if (isAvailableSrc(
|
|
983
|
+
if (isAvailableSrc(src)) {
|
|
981
984
|
loadStateRef.value = "loading";
|
|
982
985
|
if (props12.cover) {
|
|
983
|
-
loadImage(
|
|
986
|
+
loadImage(src).then((image) => {
|
|
984
987
|
coverImageRef.value = image;
|
|
985
988
|
setManualState("load");
|
|
986
|
-
}).catch((
|
|
989
|
+
}).catch((_err) => {
|
|
987
990
|
setManualState("error");
|
|
991
|
+
console.error(_err);
|
|
988
992
|
});
|
|
989
993
|
}
|
|
990
994
|
} else {
|
|
@@ -1003,6 +1007,7 @@ var VBusyImage = defineComponent({
|
|
|
1003
1007
|
ctx.emit(loadType, ev);
|
|
1004
1008
|
};
|
|
1005
1009
|
onMounted(() => {
|
|
1010
|
+
mounted.value = true;
|
|
1006
1011
|
if (booted || props12.cover)
|
|
1007
1012
|
return;
|
|
1008
1013
|
const image = nodeRef.value;
|