Skip to content

Commit

Permalink
fix: 修复类型问题
Browse files Browse the repository at this point in the history
  • Loading branch information
huayemao committed Jun 26, 2024
1 parent db30700 commit c6ac4c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/(content)/data-process/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Table({
}: {
data: any[];
canEdit?: boolean;
onRowClick: (any) => void;
onRowClick?: (any) => void;
tagCols?: number[];
boldCols?: number[];
}) {
Expand Down Expand Up @@ -88,7 +88,7 @@ export function Table({
<tr
className="text-sm border-b border-muted-200 transition-colors duration-300 last:border-none hover:bg-muted-200/40 dark:border-muted-800 dark:hover:bg-muted-900/60"
key={i}
onClick={() => onRowClick(e)}
onClick={() => onRowClick?.(e)}
>
{Object.entries(e).map(([key, value], i) => {
if (
Expand Down

0 comments on commit c6ac4c8

Please sign in to comment.