dev: hotfix, improvements

+ components/pub/my-ui/data-table
+ components/pub/ui/badge
+ lib/date
This commit is contained in:
2025-10-17 02:18:25 +07:00
parent 60f2d8378c
commit 397d744f34
4 changed files with 71 additions and 16 deletions
@@ -71,14 +71,14 @@ function handleActionCellClick(event: Event, _cellRef: string) {
<template>
<Table>
<TableHeader v-if="headers" class="bg-gray-50 dark:bg-gray-800">
<TableRow>
<TableRow v-for="(hr, hrIdx) in headers">
<TableHead
v-for="(h, idx) in headers[0]"
v-for="(th, idx) in headers[hrIdx]"
:key="`head-${idx}`"
class="border"
:class="`border ${th.classVal || ''}`"
:style="{ width: cols[idx]?.width ? `${cols[idx].width}px` : undefined }"
>
{{ h.label }}
{{ th.label }}
</TableHead>
</TableRow>
</TableHeader>