index.tsx 308 Bytes
import { Table, type TableProps } from 'antd';

/**
 * 项目统一表格。约定默认尺寸 middle,后续可在此注入统一分页/空态/列设置等。
 */
export function UTable<T>(props: TableProps<T>) {
  const { size = 'middle', ...rest } = props;
  return <Table<T> size={size} {...rest} />;
}