24 lines
908 B
TypeScript
24 lines
908 B
TypeScript
|
|
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;
|