文章目录
Vue之分页插件
整理了一份以后常用的vue的分页插件如下:
分页子组件代码
<template>
<el-pagination
class="page-box"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
:current-page="childMsg.currentPage"
:page-sizes="[2, 5, 8, 10]"
:page-size="childMsg.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="childMsg.total"
>
</el-pagination>
</template>
<script>
export default