<template>
<!--父级页面使用
<pagePagination
:total="total"
@pageChild="pageChildFun"
>
</pagePagination> -->
<div style="margin-top: 20px; text-align: right">
<el-pagination
:hide-on-single-page="flag"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageObj.current"
:page-size="pageObj.size"
background
layout="prev, pager, next"
:total="total"
>
</el-pagination>
</div>
</template>
<script>
export default {
name: "page-components",
props: {
total: {
type: Number,
default: 100,
},
},
data() {
return {
flag: false,
element分页组件二次分装使用
猜你喜欢
转载自blog.csdn.net/jieweiwujie/article/details/124798506
今日推荐
周排行