update pagination
parent
2824082c43
commit
3e0a3d8d8a
|
@ -1,7 +1,7 @@
|
||||||
## API
|
## API
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<Pagination @change="onChange" :total="50" />
|
<a-pagination @change="onChange" :total="50" />
|
||||||
```
|
```
|
||||||
|
|
||||||
| Property | Description | Type | Default |
|
| Property | Description | Type | Default |
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
| defaultPageSize | default number of data items per page | number | 10 |
|
| defaultPageSize | default number of data items per page | number | 10 |
|
||||||
| hideOnSinglePage | Whether to hide pager on single page | boolean | false |
|
| hideOnSinglePage | Whether to hide pager on single page | boolean | false |
|
||||||
| itemRender | to customize item innerHTML | (page, type: 'page' \| 'prev' \| 'next', originalElement) => vNode | - |
|
| itemRender | to customize item innerHTML | (page, type: 'page' \| 'prev' \| 'next', originalElement) => vNode | - |
|
||||||
| pageSize | number of data items per page | number | - |
|
| pageSize(.sync) | number of data items per page | number | - |
|
||||||
| pageSizeOptions | specify the sizeChanger options | string\[] | ['10', '20', '30', '40'] |
|
| pageSizeOptions | specify the sizeChanger options | string\[] | ['10', '20', '30', '40'] |
|
||||||
| showQuickJumper | determine whether you can jump to pages directly | boolean | false |
|
| showQuickJumper | determine whether you can jump to pages directly | boolean | false |
|
||||||
| showSizeChanger | determine whether `pageSize` can be changed | boolean | false |
|
| showSizeChanger | determine whether `pageSize` can be changed | boolean | false |
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## API
|
## API
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<Pagination @change="onChange" :total="50" />
|
<a-pagination @change="onChange" :total="50" />
|
||||||
```
|
```
|
||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
| defaultPageSize | 默认的每页条数 | number | 10 |
|
| defaultPageSize | 默认的每页条数 | number | 10 |
|
||||||
| hideOnSinglePage | 只有一页时是否隐藏分页器 | boolean | false |
|
| hideOnSinglePage | 只有一页时是否隐藏分页器 | boolean | false |
|
||||||
| itemRender | 用于自定义页码的结构,可用于优化 SEO | (page, type: 'page' \| 'prev' \| 'next', originalElement) => vNode | - |
|
| itemRender | 用于自定义页码的结构,可用于优化 SEO | (page, type: 'page' \| 'prev' \| 'next', originalElement) => vNode | - |
|
||||||
| pageSize | 每页条数 | number | - |
|
| pageSize(.sync) | 每页条数 | number | - |
|
||||||
| pageSizeOptions | 指定每页可以显示多少条 | string\[] | ['10', '20', '30', '40'] |
|
| pageSizeOptions | 指定每页可以显示多少条 | string\[] | ['10', '20', '30', '40'] |
|
||||||
| showQuickJumper | 是否可以快速跳转至某页 | boolean | false |
|
| showQuickJumper | 是否可以快速跳转至某页 | boolean | false |
|
||||||
| showSizeChanger | 是否可以改变 pageSize | boolean | false |
|
| showSizeChanger | 是否可以改变 pageSize | boolean | false |
|
||||||
|
|
Loading…
Reference in New Issue