zy-react-library/components/Table/index.d.ts

24 lines
908 B
TypeScript
Raw Permalink Normal View History

2025-10-22 14:43:42 +08:00
import type { ProTableProps } from "@ant-design/pro-table";
import type { TableProps } from "antd";
import type { FC } from "react";
/**
* TablePro
*/
export type TableProProps<DataSource, U, ValueType> = Omit<TableProps, 'columns'> & ProTableProps<DataSource, U, ValueType> & {
/** 当一个路由下存在多个表格的情况下 需要给每一个表格设置一个唯一存储索引 若没有设置则使用默认索引,请注意缓存数据会被覆盖 */
storeIndex?: string;
/** 是否禁用内容区滚动,默认 false */
disabledResizer?: boolean;
/** 是否显示索引列,默认 true */
showIndex?: boolean;
/** 是否使用居中布局,默认 true */
useAlignCenter?: boolean;
}
/**
*
*/
declare const TablePro: <DataSource, U, ValueType = "text">(props: TableProProps<DataSource, U, ValueType>) => ReturnType<FC>;
export default TablePro;