diff --git a/components/pagination/Pagination.tsx b/components/pagination/Pagination.tsx index 9ef10a5b80..eaeb0e9ab2 100644 --- a/components/pagination/Pagination.tsx +++ b/components/pagination/Pagination.tsx @@ -34,6 +34,7 @@ export interface PaginationProps { originalElement: React.ReactElement, ) => React.ReactNode; role?: string; + showLessItems?: boolean; } export interface PaginationConfig extends PaginationProps { diff --git a/components/pagination/index.en-US.md b/components/pagination/index.en-US.md index 570b2bf36c..cf49589bfb 100644 --- a/components/pagination/index.en-US.md +++ b/components/pagination/index.en-US.md @@ -27,6 +27,7 @@ A long list can be divided into several pages by `Pagination`, and only one page | itemRender | to customize item innerHTML | (page, type: 'page' \| 'prev' \| 'next', originalElement) => React.ReactNode | - | | pageSize | number of data items per page | number | - | | pageSizeOptions | specify the sizeChanger options | string\[] | \['10', '20', '30', '40'] | +| showLessItems | show less page items | boolean | false | | showQuickJumper | determine whether you can jump to pages directly | boolean \| `{ goButton: ReactNode }` | false | | showSizeChanger | determine whether `pageSize` can be changed | boolean | false | | showTotal | to display the total number and range | Function(total, range) | - | diff --git a/components/pagination/index.zh-CN.md b/components/pagination/index.zh-CN.md index d175af3c34..90011dad19 100644 --- a/components/pagination/index.zh-CN.md +++ b/components/pagination/index.zh-CN.md @@ -28,6 +28,7 @@ cols: 1 | itemRender | 用于自定义页码的结构,可用于优化 SEO | (page, type: 'page' \| 'prev' \| 'next', originalElement) => React.ReactNode | - | | pageSize | 每页条数 | number | - | | pageSizeOptions | 指定每页可以显示多少条 | string\[] | \['10', '20', '30', '40'] | +| showLessItems | show less page items | boolean | false | | showQuickJumper | 是否可以快速跳转至某页 | boolean \| `{ goButton: ReactNode }` | false | | showSizeChanger | 是否可以改变 pageSize | boolean | false | | showTotal | 用于显示数据总量和当前数据顺序 | Function(total, range) | - |