1 | import * as React from 'react';
|
2 | import useRowInfo from '../hooks/useRowInfo';
|
3 | import type { ColumnType, CustomizeComponent, GetRowKey } from '../interface';
|
4 | export interface BodyRowProps<RecordType> {
|
5 | record: RecordType;
|
6 | index: number;
|
7 | renderIndex: number;
|
8 | className?: string;
|
9 | style?: React.CSSProperties;
|
10 | rowComponent: CustomizeComponent;
|
11 | cellComponent: CustomizeComponent;
|
12 | scopeCellComponent: CustomizeComponent;
|
13 | indent?: number;
|
14 | rowKey: React.Key;
|
15 | getRowKey: GetRowKey<RecordType>;
|
16 | }
|
17 | export declare function getCellProps<RecordType>(rowInfo: ReturnType<typeof useRowInfo<RecordType>>, column: ColumnType<RecordType>, colIndex: number, indent: number, index: number): {
|
18 | key: React.Key;
|
19 | fixedInfo: import("../utils/fixUtil").FixedInfo;
|
20 | appendCellNode: React.ReactNode;
|
21 | additionalCellProps: React.TdHTMLAttributes<HTMLElement>;
|
22 | };
|
23 | declare function BodyRow<RecordType extends {
|
24 | children?: readonly RecordType[];
|
25 | }>(props: BodyRowProps<RecordType>): React.JSX.Element;
|
26 | declare namespace BodyRow {
|
27 | var displayName: string;
|
28 | }
|
29 | declare const _default: typeof BodyRow;
|
30 | export default _default;
|