/** * Feature: * - fixed not need to set width * - support `rowExpandable` to config row expand logic * - add `summary` to support `() => ReactNode` * * Update: * - `dataIndex` is `array[]` now * - `expandable` wrap all the expand related props * * Removed: * - expandIconAsCell * - useFixedHeader * - rowRef * - columns[number].onCellClick * - onRowClick * - onRowDoubleClick * - onRowMouseEnter * - onRowMouseLeave * - getBodyWrapper * - bodyStyle * * Deprecated: * - All expanded props, move into expandable */ import * as React from 'react'; import { GetRowKey, ColumnsType, TableComponents, DefaultRecordType, GetComponentProps, ExpandableConfig, LegacyExpandableProps, PanelRender, TableLayout, RowClassName, ColumnType } from './interface'; export declare const INTERNAL_HOOKS = "rc-table-internal-hook"; export interface TableProps extends LegacyExpandableProps { prefixCls?: string; className?: string; style?: React.CSSProperties; children?: React.ReactNode; data?: RecordType[]; columns?: ColumnsType; rowKey?: string | GetRowKey; tableLayout?: TableLayout; scroll?: { x?: number | true | string; y?: number | string; }; /** Config expand rows */ expandable?: ExpandableConfig; indentSize?: number; rowClassName?: string | RowClassName; title?: PanelRender; footer?: PanelRender; summary?: (data: RecordType[]) => React.ReactNode; id?: string; showHeader?: boolean; components?: TableComponents; onRow?: GetComponentProps; onHeaderRow?: GetComponentProps[]>; emptyText?: React.ReactNode | (() => React.ReactNode); direction?: 'ltr' | 'rtl'; /** * @private Internal usage, may remove by refactor. Should always use `columns` instead. * * !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!! */ internalHooks?: string; /** * @private Internal usage, may remove by refactor. Should always use `columns` instead. * * !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!! */ transformColumns?: (columns: ColumnsType) => ColumnsType; /** * @private Internal usage, may remove by refactor. * * !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!! */ internalRefs?: { body: React.MutableRefObject; }; } declare function Table(props: TableProps): JSX.Element; declare namespace Table { var Column: typeof import("./sugar/Column").default; var ColumnGroup: typeof import("./sugar/ColumnGroup").default; var Summary: { Cell: typeof import("./Footer/Cell").default; Row: typeof import("./Footer/Row").default; }; var defaultProps: { rowKey: string; prefixCls: string; emptyText: () => string; }; } export default Table;