# uni-pagination
## Instructions
组件名:uni-pagination
代码块: uPagination
点击下载&安装
### Syntax
- 使用 ``(或 ``,当需要包裹子节点时)。
- 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。
#### Properties
| 属性名 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| prevText | String | 上一页 | 左侧按钮文字 |
| nextText | String | 下一页 | 右侧按钮文字 |
| value/v-model | Number | 1 | 当前页 |
| current | Number | 1 | 当前页, 优先级高于 value |
| total | Number | 0 | 数据总量 |
| pageSize | Number | 10 | 每页数据量 |
| showIcon | Boolean | false | 是否以 icon 形式展示按钮 |
#### Events
| 事件称名 | 说明 | 返回值 |
| --- | --- | --- |
| @change | 点击页码按钮时触发 | e={type,current} current为当前页,type值为:next/prev,表示点击的是上一页还是下一个 |
#### Platform Compatibility
See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/uniui/uni-pagination.html`
### Examples
### Example (Example 1)
```vue
```
### Example (Example 2)
```html
```
### Example (Example 3)
```vue
分页器组件,用于展示页码、请求数据等
当前页:{{ current }},数据总量:{{ total }}条,每页数据:{{ pageSize }}
```
### Example (Example 4)
```html
分页器组件,用于展示页码、请求数据等
当前页:{{ current }},数据总量:{{ total }}条,每页数据:{{ pageSize }}
```
### Example (Example 5)
```html
```
### Example (Example 6)
```html
```
Reference:
- [Official Documentation](https://uniapp.dcloud.net.cn/component/uniui/uni-pagination.html)
- [Plugin Marketplace](https://ext.dcloud.net.cn/plugin?name=pagination)
- [Local Example](examples/uni-ui/uni-pagination.vue)