custom pagination
-
params
- props type --> object
attrs pageNumber --> current page pageSize --> how much data is on a page panelNumber --> show several page numbers totalPages --> total pages onPageChange --> Callback for page number
- callback
The dom of the pager has been generated, you need to customize the next thing
- props type --> object
click page number You need to call the toPage function when you click the page number
If there is no totalPages attribute, it can be calculated through this api