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

26 lines
1018 B
TypeScript
Raw Normal View History

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