amis-rpc-design/node_modules/rc-table/lib/Body/BodyRow.d.ts

31 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import useRowInfo from '../hooks/useRowInfo';
import type { ColumnType, CustomizeComponent, GetRowKey } from '../interface';
export interface BodyRowProps<RecordType> {
record: RecordType;
index: number;
renderIndex: number;
className?: string;
style?: React.CSSProperties;
rowComponent: CustomizeComponent;
cellComponent: CustomizeComponent;
scopeCellComponent: CustomizeComponent;
indent?: number;
rowKey: React.Key;
getRowKey: GetRowKey<RecordType>;
}
export declare function getCellProps<RecordType>(rowInfo: ReturnType<typeof useRowInfo<RecordType>>, column: ColumnType<RecordType>, colIndex: number, indent: number, index: number): {
key: React.Key;
fixedInfo: import("../utils/fixUtil").FixedInfo;
appendCellNode: React.ReactNode;
additionalCellProps: React.TdHTMLAttributes<HTMLElement>;
};
declare function BodyRow<RecordType extends {
children?: readonly RecordType[];
}>(props: BodyRowProps<RecordType>): React.JSX.Element;
declare namespace BodyRow {
var displayName: string;
}
declare const _default: typeof BodyRow;
export default _default;