📖 update pagination doc

This commit is contained in:
afc163 2020-03-29 23:04:20 +08:00
parent 2a9d6cd106
commit ff95260b0a
3 changed files with 4 additions and 68 deletions

View File

@ -38,12 +38,6 @@ exports[`Breadcrumb rtl render component should be rendered correctly in RTL dir
/>
`;
exports[`Breadcrumb should accept undefined routes 1`] = `
<div
class="ant-breadcrumb"
/>
`;
exports[`Breadcrumb should allow Breadcrumb.Item is null or undefined 1`] = `
<div
class="ant-breadcrumb"
@ -158,11 +152,9 @@ exports[`Breadcrumb should render a menu 1`] = `
<span
class="ant-breadcrumb-link"
>
<a
href="#/index/first/second"
>
<span>
second
</a>
</span>
</span>
<span
class="ant-breadcrumb-separator"
@ -170,62 +162,6 @@ exports[`Breadcrumb should render a menu 1`] = `
/
</span>
</span>
<span>
<span
class="ant-breadcrumb-link"
>
<span />
</span>
<span
class="ant-breadcrumb-separator"
>
/
</span>
</span>
</div>
`;
exports[`Breadcrumb should support React.Fragment and falsy children 1`] = `
<div
class="ant-breadcrumb"
>
<span>
<span
class="ant-breadcrumb-link"
>
yyy
</span>
<span
class="ant-breadcrumb-separator"
>
/
</span>
</span>
<span>
<span
class="ant-breadcrumb-link"
>
yyy
</span>
<span
class="ant-breadcrumb-separator"
>
/
</span>
</span>
<span>
<span
class="ant-breadcrumb-link"
>
yyy
</span>
<span
class="ant-breadcrumb-separator"
>
/
</span>
</span>
0
</div>
`;

View File

@ -27,7 +27,7 @@ A long list can be divided into several pages using `Pagination`, and only one p
| hideOnSinglePage | Whether to hide pager on single page | boolean | false | |
| itemRender | To customize item's innerHTML | (page, type: 'page' \| 'prev' \| 'next', originalElement) => React.ReactNode | - | |
| pageSize | Number of data items per page | number | - | |
| pageSizeOptions | Specify the sizeChanger options | string\[] | \['10', '25', '50', '100'] | |
| pageSizeOptions | Specify the sizeChanger options | string\[] | \['10', '20', '50', '100'] | |
| showLessItems | Show less page items | boolean | false | |
| showQuickJumper | Determine whether you can jump to pages directly | boolean \| `{ goButton: ReactNode }` | false | |
| showSizeChanger | Determine whether to show `pageSize` select, it will be `true` when `total>=100` | boolean | - | |

View File

@ -28,7 +28,7 @@ cols: 1
| hideOnSinglePage | 只有一页时是否隐藏分页器 | boolean | false | |
| itemRender | 用于自定义页码的结构,可用于优化 SEO | (page, type: 'page' \| 'prev' \| 'next', originalElement) => React.ReactNode | - | |
| pageSize | 每页条数 | number | - | |
| pageSizeOptions | 指定每页可以显示多少条 | string\[] | \['10', '20', '30', '40'] | |
| pageSizeOptions | 指定每页可以显示多少条 | string\[] | \['10', '20', '50', '100'] | |
| showLessItems | 是否显示较少页面内容 | boolean | false | |
| showQuickJumper | 是否可以快速跳转至某页 | boolean \| `{ goButton: ReactNode }` | false | |
| showSizeChanger | 是否展示 `pageSize` 切换器,当 `total` 大于 `100` 时默认为 `true` | boolean | - | |