diff --git a/src/pagination/Pagination.tsx b/src/pagination/Pagination.tsx index d4626d060..c35969c32 100644 --- a/src/pagination/Pagination.tsx +++ b/src/pagination/Pagination.tsx @@ -26,7 +26,8 @@ export interface PaginationProps extends TdPaginationProps, StyledProps {} const { Option } = Select; -const Pagination = forwardRef((props, ref) => { +const Pagination = forwardRef((originalProps, ref) => { + const props = useDefaultProps(originalProps, paginationDefaultProps); const { theme, size, @@ -49,7 +50,7 @@ const Pagination = forwardRef((props, ref) => { className, selectProps, ...otherProps - } = useDefaultProps(props, paginationDefaultProps); + } = props; // 原生 html 属性透传 const restProps = omit(otherProps, ['current', 'pageSize', 'defaultPageSize', 'defaultCurrent']);