@mixd-id/web-scaffold 0.1.230406062 → 0.1.230406064
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
|
@@ -283,7 +283,7 @@ export default{
|
|
|
283
283
|
load(){
|
|
284
284
|
if(!this.src) return
|
|
285
285
|
|
|
286
|
-
this.$refs.table1 ? this.$refs.table1.setState(
|
|
286
|
+
this.$refs.table1 ? this.$refs.table1.setState(3) : this.$refs.table2.setState(3)
|
|
287
287
|
this.socketEmit2(this.src, { columns:this.config.columns, preset:this.preset })
|
|
288
288
|
.then((res) => {
|
|
289
289
|
Object.assign(this.$data, res)
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
<div ref="cont">
|
|
21
|
-
<div
|
|
21
|
+
<div v-if="state === 3" ref="spinner" class="flex-1 flex items-center justify-center p-8">
|
|
22
|
+
<svg class="animate-spin aspect-square w-[32px] h-[32px] text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>
|
|
23
|
+
</div>
|
|
24
|
+
<div ref="scroller" v-else-if="visibleColumns.length > 0" :class="$style.scroller" :style="scrollerStyle">
|
|
22
25
|
<div :class="$style.spacer" ref="spacer" :style="spacerStyle">
|
|
23
26
|
<table :class="$style.table">
|
|
24
27
|
<thead>
|
|
@@ -46,6 +49,13 @@
|
|
|
46
49
|
</div>
|
|
47
50
|
</div>
|
|
48
51
|
</div>
|
|
52
|
+
<div v-else-if="visibleColumns.length <= 0 && Array.isArray(columns)" class="text-center p-3 flex-1 min-h-[100%] flex items-center justify-center">
|
|
53
|
+
<h5 class="text-text-300">No active column</h5>
|
|
54
|
+
</div>
|
|
55
|
+
<div v-else-if="Array.isArray(items) && items.length <= 0" class="text-center p-3 flex-1 min-h-[100%] flex items-center justify-center">
|
|
56
|
+
<h5 class="text-text-300">No data available</h5>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
49
59
|
<div :class="$style.calc" v-if="visibleColumns.length > 0 && items && items.length > 0" ref="calc">
|
|
50
60
|
<table :class="$style.table">
|
|
51
61
|
<tbody>
|
|
@@ -59,12 +69,6 @@
|
|
|
59
69
|
</tbody>
|
|
60
70
|
</table>
|
|
61
71
|
</div>
|
|
62
|
-
<div v-else-if="visibleColumns.length <= 0 && Array.isArray(columns)" class="text-center p-3 flex-1 min-h-[100%] flex items-center justify-center">
|
|
63
|
-
<h5 class="text-text-300">No active column</h5>
|
|
64
|
-
</div>
|
|
65
|
-
<div v-else-if="Array.isArray(items) && items.length <= 0" class="text-center p-3 flex-1 min-h-[100%] flex items-center justify-center">
|
|
66
|
-
<h5 class="text-text-300">No data available</h5>
|
|
67
|
-
</div>
|
|
68
72
|
</div>
|
|
69
73
|
</div>
|
|
70
74
|
</template>
|
package/src/utils/listview.js
CHANGED
|
@@ -125,7 +125,7 @@ let ListView = {
|
|
|
125
125
|
return
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
const summary = params.preset.summaries.filter((_) => _.enabled).pop()
|
|
128
|
+
const summary = (params.preset.summaries ?? []).filter((_) => _.enabled).pop()
|
|
129
129
|
if(!summary) return
|
|
130
130
|
|
|
131
131
|
const { derivedSql, where, replacements } = loadResults
|