adminforth 2.4.0-next.133 → 2.4.0-next.134
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.
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
:row-heights="rowHeights"
|
|
24
24
|
:column-widths="columnWidths"
|
|
25
25
|
/>
|
|
26
|
+
<tr v-else-if="!isLoading && dataPage.length === 0" class="afcl-table-empty-body">
|
|
27
|
+
<td :colspan="columns.length" class="px-6 py-12 text-center">
|
|
28
|
+
<div class="flex flex-col items-center justify-center text-lightTableText dark:text-darkTableText">
|
|
29
|
+
<IconTableRowOutline class="w-10 h-10 mb-4 text-gray-400 dark:text-gray-500" />
|
|
30
|
+
<p class="text-md">{{ $t('No data available') }}</p>
|
|
31
|
+
</div>
|
|
32
|
+
</td>
|
|
33
|
+
</tr>
|
|
26
34
|
<tr
|
|
27
35
|
v-else="!isLoading"
|
|
28
36
|
v-for="(item, index) in dataPage"
|
|
@@ -118,6 +126,7 @@
|
|
|
118
126
|
<script setup lang="ts">
|
|
119
127
|
import { ref, computed, useTemplateRef, watch, shallowRef, toRef } from 'vue';
|
|
120
128
|
import SkeleteLoader from '@/components/SkeleteLoader.vue';
|
|
129
|
+
import { IconTableRowOutline } from '@iconify-prerendered/vue-flowbite';
|
|
121
130
|
|
|
122
131
|
type Row = Record<string, unknown>
|
|
123
132
|
type LoadFn = (params: { offset: number, limit: number }) => Promise<{ data: Row[]; total: number }>
|