@innertia-solutions/nuxt-theme-spark 0.1.47 → 0.1.48
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/components/Table.vue +3 -7
- package/package.json +1 -1
package/components/Table.vue
CHANGED
|
@@ -570,22 +570,18 @@ defineExpose({
|
|
|
570
570
|
/>
|
|
571
571
|
</tr>
|
|
572
572
|
|
|
573
|
-
<!-- Empty
|
|
573
|
+
<!-- Empty filler rows: maintain table height when no results -->
|
|
574
574
|
<tr
|
|
575
575
|
v-if="!loading && tableData.length === 0"
|
|
576
|
-
v-for="
|
|
576
|
+
v-for="i in pagination.pageSize"
|
|
577
577
|
:key="'esk-' + i"
|
|
578
578
|
class="divide-x divide-gray-200 dark:divide-slate-700 bg-white dark:bg-slate-800"
|
|
579
579
|
>
|
|
580
580
|
<td
|
|
581
581
|
v-for="header in (table.getHeaderGroups()[0]?.headers ?? [])"
|
|
582
582
|
:key="'eskc-' + header.id"
|
|
583
|
-
:class="header.id === 'select' ? 'text-center w-12' : 'px-4'"
|
|
584
583
|
:style="{ height: lastRowHeight + 'px' }"
|
|
585
|
-
|
|
586
|
-
<div v-if="header.id === 'select'" class="w-4 h-4 bg-gray-200 dark:bg-slate-600 rounded mx-auto"></div>
|
|
587
|
-
<div v-else class="h-4 w-[50%] rounded bg-gray-100 dark:bg-slate-700"></div>
|
|
588
|
-
</td>
|
|
584
|
+
/>
|
|
589
585
|
</tr>
|
|
590
586
|
|
|
591
587
|
<!-- Data rows -->
|