el-table 自定义分页
<div class="toolbar" style="padding:10px;"> <el-pagination layout="total, prev, pager, next, jumper,sizes" @current-change="currentChange" :current-page="growFilters.start" :page-size="growFilters.limit" :total="growthTotalSize" style="float:right;" :page-sizes="[10, 20, 30, 40]" @size-change="sizeChange" ></el-pagination> </div>
currentChange(start) { this.growFilters.start = start; this.queryPageGrow(); }, sizeChange(limit) { this.growFilters.start = 1; this.growFilters.limit = limit; this.queryPageGrow(); },