diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-27 10:03:06 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-27 10:03:06 +0000 |
| commit | a3525f8bdfcf849cc1716fab81cb8facadbe9a8e (patch) | |
| tree | 0b5b534e92bcfe188d4906db7d16c37044262c2f /lib/export.ts | |
| parent | e87b7b06d92dc7e7235ecda24c212169f30e82ec (diff) | |
(최겸) 구매 협력업체 관리(PQ/실사관리, 정기평가 협력업체 제출 상세 dialog 개발,
Diffstat (limited to 'lib/export.ts')
| -rw-r--r-- | lib/export.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/export.ts b/lib/export.ts index 71fae264..c4edbbc8 100644 --- a/lib/export.ts +++ b/lib/export.ts @@ -52,8 +52,8 @@ export async function exportTableToExcel<TData>( const maybeGroup = (col.columnDef.meta as any)?.group row1.push(maybeGroup ?? "") - // excelHeader - const maybeExcelHeader = (col.columnDef.meta as any)?.excelHeader + // excelHeader (meta 또는 직접 속성에서 찾기) + const maybeExcelHeader = (col.columnDef.meta as any)?.excelHeader || (col.columnDef as any)?.excelHeader if (typeof maybeExcelHeader === "string") { row2.push(maybeExcelHeader) } else { @@ -79,7 +79,7 @@ export async function exportTableToExcel<TData>( } else { // ────────────── 기존 1줄 헤더 ────────────── const headerRow = columns.map((col) => { - const maybeExcelHeader = (col.columnDef.meta as any)?.excelHeader + const maybeExcelHeader = (col.columnDef.meta as any)?.excelHeader || (col.columnDef as any)?.excelHeader return typeof maybeExcelHeader === "string" ? maybeExcelHeader : col.id }) |
