UNPKG

1.16 kBTypeScriptView Raw
1import * as React from 'react';
2import useRowInfo from '../hooks/useRowInfo';
3import type { ColumnType, CustomizeComponent, GetRowKey } from '../interface';
4export 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}
17export 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};
23declare function BodyRow<RecordType extends {
24 children?: readonly RecordType[];
25}>(props: BodyRowProps<RecordType>): React.JSX.Element;
26declare namespace BodyRow {
27 var displayName: string;
28}
29declare const _default: typeof BodyRow;
30export default _default;