import type { ProTableProps } from "@ant-design/pro-table"; import type { TableProps as AntdTableProps } from "antd"; import type { FC } from "react"; /** * TablePro 组件属性 */ export type TableProps = Omit & ProTableProps & { /** 当一个路由下存在多个表格的情况下 需要给每一个表格设置一个唯一存储索引 若没有设置则使用默认索引,请注意缓存数据会被覆盖 */ storeIndex?: string; /** 是否禁用内容区滚动,默认 false */ disabledResizer?: boolean; /** 是否显示索引列,默认 true */ showIndexColumn?: boolean; /** 索引列是否固定,默认 left */ indexColumnFixed?: "left" | "right" | boolean; /** 列的对齐方式,默认 center */ align?: "left" | "right" | "center"; /** 超过宽度是否自动省略,默认 true */ ellipsis?: boolean; }; /** * 表格组件 */ declare const Table: (props: TableProps) => ReturnType; export default Table;