@live-change/vue3-components 0.8.103 → 0.8.105
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/logic/LoadingZone.vue +2 -16
- package/package.json +3 -3
package/logic/LoadingZone.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<suspense v-if="suspense"
|
|
2
|
+
<suspense v-if="suspense">
|
|
3
3
|
<template #default>
|
|
4
4
|
<div>
|
|
5
5
|
<slot v-bind="{ isLoading: !!loading.length, loading, errors }"></slot>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
loading: [],
|
|
52
52
|
loadingBlockId: 0,
|
|
53
53
|
connectionProblem: false,
|
|
54
|
-
|
|
54
|
+
r: Math.random()
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
setup() {
|
|
@@ -75,24 +75,10 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
methods: {
|
|
78
|
-
handlePending() {
|
|
79
|
-
let oldSuspenseTask = this.suspenseTask
|
|
80
|
-
this.suspenseTask = { name: 'View loading' }
|
|
81
|
-
this.loadingStarted(this.suspenseTask)
|
|
82
|
-
if(oldSuspenseTask) this.loadingFinished(oldSuspenseTask)
|
|
83
|
-
},
|
|
84
|
-
handleResolve() {
|
|
85
|
-
if(this.suspenseTask) this.loadingFinished(this.suspenseTask)
|
|
86
|
-
this.suspenseTask = null
|
|
87
|
-
},
|
|
88
|
-
handleFallback() {
|
|
89
|
-
|
|
90
|
-
},
|
|
91
78
|
loadingStarted(task) {
|
|
92
79
|
if(this.loading.length === 0) {
|
|
93
80
|
analytics.emit('loadingStarted', { task: task.name })
|
|
94
81
|
info('LOADING STARTED!')
|
|
95
|
-
|
|
96
82
|
const loadingBlockId = this.loadingBlockId
|
|
97
83
|
this.loadingTimeout = setTimeout(() => {
|
|
98
84
|
if(loadingBlockId === this.loadingBlockId && this.loading.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.105",
|
|
4
4
|
"description": "Live Change Framework - vue components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/vue3-ssr": "^0.8.105",
|
|
25
25
|
"debug": "^4.3.4",
|
|
26
26
|
"mitt": "3.0.1",
|
|
27
27
|
"vue": "^3.4.29"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "bf290febf91c05b8fb1b657b1c0f4861ca2727fc"
|
|
30
30
|
}
|