@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.18.34",
3
+ "version": "0.19.1",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "keywords": [
6
6
  "fastkit",
@@ -44,34 +44,34 @@
44
44
  "src"
45
45
  ],
46
46
  "dependencies": {
47
- "@fastkit/color-scheme": "1.0.15",
48
- "@fastkit/dom": "0.1.8",
49
- "@fastkit/helpers": "0.13.8",
50
- "@fastkit/color-scheme-gen": "0.13.15",
51
- "@fastkit/icon-font": "1.0.10",
52
- "@fastkit/media-match": "1.0.10",
53
- "@fastkit/rules": "0.13.10",
54
- "@fastkit/media-match-gen": "0.13.15",
55
- "@fastkit/vue-action": "0.2.22",
56
- "@fastkit/stylebase": "0.13.1",
57
- "@fastkit/tiny-logger": "0.13.8",
58
- "@fastkit/vue-click-outside": "0.1.20",
59
- "@fastkit/vue-app-layout": "0.14.22",
60
- "@fastkit/vue-body-scroll-lock": "0.1.19",
61
- "@fastkit/vue-form-control": "0.19.19",
62
- "@fastkit/vue-color-scheme": "0.14.19",
63
- "@fastkit/vue-keyboard": "0.1.8",
64
- "@fastkit/vue-loading": "0.14.20",
65
- "@fastkit/vue-resize": "0.1.19",
66
- "@fastkit/vue-location": "0.1.26",
67
- "@fastkit/vue-stack": "0.15.53",
68
- "@fastkit/vue-scroller": "0.14.21",
69
- "@fastkit/vue-transitions": "0.1.23",
70
- "@fastkit/vue-utils": "0.14.17",
71
- "@fastkit/vue-media-match": "0.13.15"
47
+ "@fastkit/color-scheme": "2.0.1",
48
+ "@fastkit/helpers": "0.14.1",
49
+ "@fastkit/color-scheme-gen": "0.14.1",
50
+ "@fastkit/dom": "0.2.1",
51
+ "@fastkit/icon-font": "2.0.1",
52
+ "@fastkit/media-match": "2.0.1",
53
+ "@fastkit/rules": "0.14.1",
54
+ "@fastkit/tiny-logger": "0.14.1",
55
+ "@fastkit/media-match-gen": "0.14.1",
56
+ "@fastkit/vue-action": "0.3.1",
57
+ "@fastkit/vue-body-scroll-lock": "0.2.1",
58
+ "@fastkit/vue-app-layout": "0.15.1",
59
+ "@fastkit/vue-click-outside": "0.2.1",
60
+ "@fastkit/vue-loading": "0.15.1",
61
+ "@fastkit/vue-color-scheme": "0.15.1",
62
+ "@fastkit/vue-location": "0.2.1",
63
+ "@fastkit/vue-keyboard": "0.2.1",
64
+ "@fastkit/vue-media-match": "0.14.1",
65
+ "@fastkit/vue-form-control": "0.20.1",
66
+ "@fastkit/vue-scroller": "0.15.1",
67
+ "@fastkit/vue-resize": "0.2.1",
68
+ "@fastkit/vue-stack": "0.16.1",
69
+ "@fastkit/vue-transitions": "0.2.1",
70
+ "@fastkit/vue-utils": "0.15.1",
71
+ "@fastkit/stylebase": "0.13.1"
72
72
  },
73
73
  "peerDependencies": {
74
- "vue": "^3.3.0",
74
+ "vue": "^3.4.0",
75
75
  "vue-router": "^4.2.0"
76
76
  },
77
77
  "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
- () => ctx.attrs.src as string | null | undefined,
178
- (value) => {
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(value)) {
183
+ if (isAvailableSrc(src)) {
181
184
  loadStateRef.value = 'loading';
182
185
  if (props.cover) {
183
- loadImage(value)
186
+ loadImage(src)
184
187
  .then((image) => {
185
188
  coverImageRef.value = image;
186
189
  setManualState('load');
187
190
  })
188
- .catch((err) => {
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;