Skip to content

Commit e476e82

Browse files
authored
无用的getRowKey (#1210)
* 无用的getRowKey * Update BodyRow.tsx
1 parent 93d4753 commit e476e82

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Body/BodyRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Cell from '../Cell';
44
import { responseImmutable } from '../context/TableContext';
55
import devRenderTimes from '../hooks/useRenderTimes';
66
import useRowInfo from '../hooks/useRowInfo';
7-
import type { ColumnType, CustomizeComponent, GetRowKey } from '../interface';
7+
import type { ColumnType, CustomizeComponent } from '../interface';
88
import ExpandedRow from './ExpandedRow';
99
import { computedExpandedClassName } from '../utils/expandUtil';
1010

@@ -19,7 +19,6 @@ export interface BodyRowProps<RecordType> {
1919
scopeCellComponent: CustomizeComponent;
2020
indent?: number;
2121
rowKey: React.Key;
22-
getRowKey: GetRowKey<RecordType>;
2322
}
2423

2524
// ==================================================================================

src/Body/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function Body<RecordType>(props: BodyProps<RecordType>) {
7373
rowComponent={trComponent}
7474
cellComponent={tdComponent}
7575
scopeCellComponent={thComponent}
76-
getRowKey={getRowKey}
7776
indent={indent}
7877
/>
7978
);

0 commit comments

Comments
 (0)