ElementUI中前端分页的实现
<div class="block">
<el-pagination
:current-page.sync="currPage"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-size="pageSize"
layout="total, prev, pager, next, jumper"
:total="totalCount">
</el-pagination>
</div>
//Elementui分页器
totalCount: 0,
currPage: 1, //默认第一页
pageSize: 6, //默认展示6条