From c6ac4c8fd7f91a6ffba2267cc40ec31444a35a02 Mon Sep 17 00:00:00 2001 From: huayemao Date: Wed, 26 Jun 2024 18:00:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(content)/data-process/Table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(content)/data-process/Table.tsx b/app/(content)/data-process/Table.tsx index bceb6a7..5f74fb2 100644 --- a/app/(content)/data-process/Table.tsx +++ b/app/(content)/data-process/Table.tsx @@ -14,7 +14,7 @@ export function Table({ }: { data: any[]; canEdit?: boolean; - onRowClick: (any) => void; + onRowClick?: (any) => void; tagCols?: number[]; boldCols?: number[]; }) { @@ -88,7 +88,7 @@ export function Table({ onRowClick(e)} + onClick={() => onRowClick?.(e)} > {Object.entries(e).map(([key, value], i) => { if (