@innertia-solutions/nuxt-theme-spark 0.1.31 → 0.1.32
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 +14 -0
- package/package.json +1 -1
package/components/Table.vue
CHANGED
|
@@ -686,6 +686,20 @@ defineExpose({
|
|
|
686
686
|
</template>
|
|
687
687
|
</td>
|
|
688
688
|
</tr>
|
|
689
|
+
|
|
690
|
+
<!-- Filler rows: pad table to full page height when data < perPage -->
|
|
691
|
+
<tr
|
|
692
|
+
v-if="!loading && tableData.length > 0 && tableData.length < pagination.pageSize"
|
|
693
|
+
v-for="i in (pagination.pageSize - tableData.length)"
|
|
694
|
+
:key="'fill-' + i"
|
|
695
|
+
class="divide-x divide-gray-200 dark:divide-slate-700 bg-white dark:bg-slate-800"
|
|
696
|
+
>
|
|
697
|
+
<td
|
|
698
|
+
v-for="header in (table.getHeaderGroups()[0]?.headers ?? [])"
|
|
699
|
+
:key="'fillc-' + header.id"
|
|
700
|
+
:style="{ height: lastRowHeight + 'px' }"
|
|
701
|
+
/>
|
|
702
|
+
</tr>
|
|
689
703
|
</tbody>
|
|
690
704
|
</table>
|
|
691
705
|
|