change table header specimen-collection

This commit is contained in:
2024-08-20 09:29:52 +07:00
parent a6f4c60cb2
commit f633b29add
2 changed files with 23 additions and 5 deletions

View File

@@ -92,6 +92,15 @@
:headers="headers"
hide-default-footer
>
<template v-slot:headers="{ columns }">
<tr>
<template v-for="column in columns" :key="column.key">
<td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
<span>{{ column.title }}</span>
</td>
</template>
</tr>
</template>
<template v-slot:item="{ item }">
<tr>
<td>