diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-12 17:49:57 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-12 17:49:57 +0900 |
| commit | f4b1a770184e8647e0b3042a52a1bcc6f9cf00ce (patch) | |
| tree | d76700d8f52fa893afa816cf60bd3620f3032fe7 /lib/docu-list-rule/document-class/table/document-class-table-columns.tsx | |
| parent | d3ff18a2320eeb400dc5d18588490c775bff4820 (diff) | |
(김준회) SWP: 파일 업로드시 Stage 검증 추가, DOC_CLASS 관리 단순화 (코드 제거), DOC_CLASS 추가시 검증(A-Z0-9) 처리
Diffstat (limited to 'lib/docu-list-rule/document-class/table/document-class-table-columns.tsx')
| -rw-r--r-- | lib/docu-list-rule/document-class/table/document-class-table-columns.tsx | 43 |
1 files changed, 14 insertions, 29 deletions
diff --git a/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx b/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx index 8c391def..9d8d91e0 100644 --- a/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx +++ b/lib/docu-list-rule/document-class/table/document-class-table-columns.tsx @@ -107,43 +107,28 @@ export function getColumns({ setRowAction, onDetail }: GetColumnsProps): ColumnD // ---------------------------------------------------------------- const dataColumns: ColumnDef<typeof documentClasses.$inferSelect>[] = [ { - accessorKey: "code", - enableResizing: true, - header: ({ column }) => ( - <DataTableColumnHeaderSimple column={column} title="코드" /> - ), - meta: { - excelHeader: "코드", - type: "text", - }, - cell: ({ row }) => row.getValue("code") ?? "", - minSize: 80 - }, - { accessorKey: "value", enableResizing: true, header: ({ column }) => ( - <DataTableColumnHeaderSimple column={column} title="값" /> + <DataTableColumnHeaderSimple column={column} title="클래스" /> ), meta: { - excelHeader: "값", + excelHeader: "클래스", type: "text", }, - cell: ({ row }) => row.getValue("value") ?? "", - minSize: 80 - }, - { - accessorKey: "description", - enableResizing: true, - header: ({ column }) => ( - <DataTableColumnHeaderSimple column={column} title="설명" /> - ), - meta: { - excelHeader: "설명", - type: "text", + cell: ({ row }) => { + const value = row.getValue("value") as string + const description = row.getValue("description") as string + return ( + <div className="flex items-center gap-2"> + <span className="font-mono font-bold text-lg">{value}</span> + {description && ( + <span className="text-muted-foreground text-sm">- {description}</span> + )} + </div> + ) }, - cell: ({ row }) => row.getValue("description") ?? "", - minSize: 80 + minSize: 250 }, { |
