import * as React from 'react'; import { ColumnsType, ColumnType, ExpandableConfig, GetComponentProps, GetRowKey, PanelRender, RowClassName, TableComponents, TableLayout, FixedType } from 'rc-table/lib/interface'; import { ScrollbarType } from '../scrollbar'; import './style/table.css'; export type { FixedType }; export interface TableProps { /** 类名 */ className?: string; /** 样式 */ style?: React.CSSProperties; children?: React.ReactNode; /** 数据源 */ data?: RecordType[]; /** 表格列的配置描述 */ columns?: ColumnsType; /** 表格行 key 的取值,可以是字符串或一个函数 */ rowKey?: string | GetRowKey; /** 表格元素的 table-layout 属性,设为 fixed 表示内容不会影响列的布局 */ tableLayout?: TableLayout; /** 设置滚动 */ scroll?: { x?: number | true | string; y?: number | string; }; /** Config expand rows */ expandable?: ExpandableConfig; /** 展示树形数据时,每层缩进的宽度,以 px 为单位 */ indentSize?: number; /** 表格行的类名 */ rowClassName?: string | RowClassName; /** 表格标题 */ title?: PanelRender; /** 表格尾部 */ footer?: PanelRender; /** 总结栏 */ summary?: (data: RecordType[]) => React.ReactNode; id?: string; /** 是否显示表头 */ showHeader?: boolean; /** 覆盖默认的 table 元素 */ components?: TableComponents; /** 设置行属性 */ onRow?: GetComponentProps; /** 设置头部行属性 */ onHeaderRow?: GetComponentProps[]>; /** 空表格显示 */ emptyText?: React.ReactNode | (() => React.ReactNode); /** 表格方向 */ direction?: 'ltr' | 'rtl'; /** 类型 */ type?: ScrollbarType; /** 显示边框 */ withVerticalBorder?: boolean; } export declare const prefixCls = "dmc-table"; declare const Table: React.FC; export default Table; declare const TableMemo: React.NamedExoticComponent>; export { TableMemo };