There are 10 page numbers by default in the <el-pagination> component
layout="prev,pager,next"
Page forward, current, and backward are represented in that order. How many pieces of data are there by attribute:total=" How many entries"
To decide. A page shows how many pieces of data are displayed by attributes:page-size="5"
To determine the
When the data was rendered to the table, change the page-size to 2, click to switch the page number and find that the data did not change, because the data of the second page was not requested to be rendered to the page
The paging component’s event current-change is needed
The event callback takes the currentPage (currentPage) to print forensics.
The function of clicking on the page number to switch the current page number data is then implemented in this callback.