# el-pagination
**Repository Path**: xy0225/el-pagination
## Basic Information
- **Project Name**: el-pagination
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-06-21
- **Last Updated**: 2022-06-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#### How to use
`
npm i el-pagination
`
Import on your page
`
import Pagination from 'el-pagination/Pagination'
`
#### Attributes
| Attributes |
Description |
Type |
Optional value |
Defaults |
| upName |
Left button value |
String |
- |
上一页 |
| downName |
Right button value |
String |
- |
下一页 |
| pageCount |
Total number of pages |
number |
- |
- |
| pageSize |
Page length per page |
number |
Recommended value greater than 5 |
10 |
| currentPage |
Current page count, the default number of pages is started for the first time |
number |
- |
- |
#### Events
| Event name |
Description |
Callback parameter |
| click |
Clicking on the page number will trigger |
currentPage |
| prev-click |
Clicking on the left button will trigger |
currentPage |
| next-click |
Clicking on the right button will trigger |
currentPage |
#### Example
```javascript
```
**if your currentPage is 2 and your pageCount is 20 pagesSize is 10, you will see this picture**

**this dots is quick skip many page, this skip number depending on your pageCount value, for example, If your pageCount is 20, the skip number is pageCount/2 = 2**
**if you currentPage is 8, you will see this picture**

**look the left dot, this is same as the right dot, the difference is skip left page**