From 5ebca79244cfe1afec76e5b494ac7a3de6796a57 Mon Sep 17 00:00:00 2001 From: bubucuo <276185876@qq.com> Date: Wed, 11 Dec 2024 04:23:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0=E7=94=A8=E7=9A=84getRowKey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Body/BodyRow.tsx | 1 - src/Body/index.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Body/BodyRow.tsx b/src/Body/BodyRow.tsx index d33cf38dc..3c71fa5be 100644 --- a/src/Body/BodyRow.tsx +++ b/src/Body/BodyRow.tsx @@ -19,7 +19,6 @@ export interface BodyRowProps { scopeCellComponent: CustomizeComponent; indent?: number; rowKey: React.Key; - getRowKey: GetRowKey; } // ================================================================================== diff --git a/src/Body/index.tsx b/src/Body/index.tsx index 3173fa22d..aec12e9d4 100644 --- a/src/Body/index.tsx +++ b/src/Body/index.tsx @@ -73,7 +73,6 @@ function Body(props: BodyProps) { rowComponent={trComponent} cellComponent={tdComponent} scopeCellComponent={thComponent} - getRowKey={getRowKey} indent={indent} /> ); From 125ea105d9639039ad9b32d98245e52a0b37e36a Mon Sep 17 00:00:00 2001 From: bubucuo <276185876@qq.com> Date: Tue, 10 Dec 2024 22:41:59 -0800 Subject: [PATCH 2/2] Update BodyRow.tsx --- src/Body/BodyRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Body/BodyRow.tsx b/src/Body/BodyRow.tsx index 3c71fa5be..46ca866f8 100644 --- a/src/Body/BodyRow.tsx +++ b/src/Body/BodyRow.tsx @@ -4,7 +4,7 @@ import Cell from '../Cell'; import { responseImmutable } from '../context/TableContext'; import devRenderTimes from '../hooks/useRenderTimes'; import useRowInfo from '../hooks/useRowInfo'; -import type { ColumnType, CustomizeComponent, GetRowKey } from '../interface'; +import type { ColumnType, CustomizeComponent } from '../interface'; import ExpandedRow from './ExpandedRow'; import { computedExpandedClassName } from '../utils/expandUtil';