diff --git a/components/table/Table.tsx b/components/table/Table.tsx index e1d080df5d..8b4ac08ecf 100644 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -5,7 +5,7 @@ import RcTable, { Summary } from 'rc-table'; import { TableProps as RcTableProps, INTERNAL_HOOKS } from 'rc-table/lib/Table'; import { convertChildrenToColumns } from 'rc-table/lib/hooks/useColumns'; import Spin, { SpinProps } from '../spin'; -import Pagination, { PaginationConfig } from '../pagination'; +import Pagination from '../pagination'; import { ConfigContext } from '../config-provider/context'; import usePagination, { DEFAULT_PAGE_SIZE, getPaginationParam } from './hooks/usePagination'; import useLazyKVMap from './hooks/useLazyKVMap'; @@ -72,7 +72,7 @@ export interface TableProps locale?: TableLocale; onChange?: ( - pagination: PaginationConfig, + pagination: TablePaginationConfig, filters: Record, sorter: SorterResult | SorterResult[], extra: TableCurrentDataSource, @@ -396,7 +396,7 @@ function Table(props: TableProps) { let topPaginationNode: React.ReactNode; let bottomPaginationNode: React.ReactNode; if (pagination !== false) { - let paginationSize: PaginationConfig['size']; + let paginationSize: TablePaginationConfig['size']; if (mergedPagination.size) { paginationSize = mergedPagination.size; } else {