@fastkit/vui 0.18.34 → 0.19.0
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 -36
- package/src/components/VBusyImage/VBusyImage.tsx +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "A simple, extensible UI kit for Vue applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fastkit",
|
|
@@ -30,48 +30,39 @@
|
|
|
30
30
|
},
|
|
31
31
|
"./*": "./dist/*"
|
|
32
32
|
},
|
|
33
|
-
"main": "./dist/vui.mjs",
|
|
34
|
-
"types": "./dist/vui.d.ts",
|
|
35
|
-
"typesVersions": {
|
|
36
|
-
"*": {
|
|
37
|
-
".": [
|
|
38
|
-
"./dist/vui.d.ts"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
33
|
"files": [
|
|
43
34
|
"dist",
|
|
44
35
|
"src"
|
|
45
36
|
],
|
|
46
37
|
"dependencies": {
|
|
47
|
-
"@fastkit/
|
|
48
|
-
"@fastkit/
|
|
49
|
-
"@fastkit/
|
|
50
|
-
"@fastkit/
|
|
51
|
-
"@fastkit/
|
|
52
|
-
"@fastkit/
|
|
53
|
-
"@fastkit/
|
|
54
|
-
"@fastkit/
|
|
55
|
-
"@fastkit/vue-action": "0.
|
|
56
|
-
"@fastkit/
|
|
57
|
-
"@fastkit/
|
|
58
|
-
"@fastkit/vue-
|
|
59
|
-
"@fastkit/vue-
|
|
60
|
-
"@fastkit/vue-
|
|
61
|
-
"@fastkit/vue-form-control": "0.
|
|
62
|
-
"@fastkit/vue-
|
|
63
|
-
"@fastkit/vue-
|
|
64
|
-
"@fastkit/vue-
|
|
65
|
-
"@fastkit/vue-
|
|
66
|
-
"@fastkit/vue-
|
|
67
|
-
"@fastkit/vue-
|
|
68
|
-
"@fastkit/vue-
|
|
69
|
-
"@fastkit/vue-transitions": "0.
|
|
70
|
-
"@fastkit/vue-utils": "0.
|
|
71
|
-
"@fastkit/
|
|
38
|
+
"@fastkit/dom": "0.2.0",
|
|
39
|
+
"@fastkit/color-scheme-gen": "0.14.0",
|
|
40
|
+
"@fastkit/color-scheme": "2.0.0",
|
|
41
|
+
"@fastkit/helpers": "0.14.0",
|
|
42
|
+
"@fastkit/media-match": "2.0.0",
|
|
43
|
+
"@fastkit/icon-font": "2.0.0",
|
|
44
|
+
"@fastkit/tiny-logger": "0.14.0",
|
|
45
|
+
"@fastkit/rules": "0.14.0",
|
|
46
|
+
"@fastkit/vue-action": "0.3.0",
|
|
47
|
+
"@fastkit/media-match-gen": "0.14.0",
|
|
48
|
+
"@fastkit/vue-body-scroll-lock": "0.2.0",
|
|
49
|
+
"@fastkit/vue-app-layout": "0.15.0",
|
|
50
|
+
"@fastkit/vue-click-outside": "0.2.0",
|
|
51
|
+
"@fastkit/vue-keyboard": "0.2.0",
|
|
52
|
+
"@fastkit/vue-form-control": "0.20.0",
|
|
53
|
+
"@fastkit/vue-loading": "0.15.0",
|
|
54
|
+
"@fastkit/vue-location": "0.2.0",
|
|
55
|
+
"@fastkit/vue-color-scheme": "0.15.0",
|
|
56
|
+
"@fastkit/vue-media-match": "0.14.0",
|
|
57
|
+
"@fastkit/vue-resize": "0.2.0",
|
|
58
|
+
"@fastkit/vue-scroller": "0.15.0",
|
|
59
|
+
"@fastkit/vue-stack": "0.16.0",
|
|
60
|
+
"@fastkit/vue-transitions": "0.2.0",
|
|
61
|
+
"@fastkit/vue-utils": "0.15.0",
|
|
62
|
+
"@fastkit/stylebase": "0.13.1"
|
|
72
63
|
},
|
|
73
64
|
"peerDependencies": {
|
|
74
|
-
"vue": "^3.
|
|
65
|
+
"vue": "^3.4.0",
|
|
75
66
|
"vue-router": "^4.2.0"
|
|
76
67
|
},
|
|
77
68
|
"buildOptions": {
|
|
@@ -172,21 +172,26 @@ export const VBusyImage = defineComponent({
|
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
let booted = false;
|
|
175
|
+
const mounted = ref(false);
|
|
175
176
|
|
|
176
177
|
watch(
|
|
177
|
-
() =>
|
|
178
|
-
|
|
178
|
+
() =>
|
|
179
|
+
[ctx.attrs.src as string | null | undefined, mounted.value] as const,
|
|
180
|
+
([src, _mounted]) => {
|
|
181
|
+
if (!_mounted) return;
|
|
179
182
|
coverImageRef.value = undefined;
|
|
180
|
-
if (isAvailableSrc(
|
|
183
|
+
if (isAvailableSrc(src)) {
|
|
181
184
|
loadStateRef.value = 'loading';
|
|
182
185
|
if (props.cover) {
|
|
183
|
-
loadImage(
|
|
186
|
+
loadImage(src)
|
|
184
187
|
.then((image) => {
|
|
185
188
|
coverImageRef.value = image;
|
|
186
189
|
setManualState('load');
|
|
187
190
|
})
|
|
188
|
-
.catch((
|
|
191
|
+
.catch((_err) => {
|
|
189
192
|
setManualState('error');
|
|
193
|
+
// eslint-disable-next-line no-console
|
|
194
|
+
console.error(_err);
|
|
190
195
|
});
|
|
191
196
|
}
|
|
192
197
|
} else {
|
|
@@ -209,6 +214,7 @@ export const VBusyImage = defineComponent({
|
|
|
209
214
|
};
|
|
210
215
|
|
|
211
216
|
onMounted(() => {
|
|
217
|
+
mounted.value = true;
|
|
212
218
|
if (booted || props.cover) return;
|
|
213
219
|
|
|
214
220
|
const image = nodeRef.value;
|