2022-08-30 elementUI pagination

2022-08-30  本文已影响0人  半眼鱼

效果图:

image.png

主要代码:

<div v-for="(comment,index) in commentData">

....

<el-pagination
@current-change="handleCurrentChangeM($event,index)"
:page-size="comment.pageSize"
:total="comment.total"
:current-page="comment.currentPage"
:background="true"
:small="true"
layout="total,prev, pager, next">
</el-pagination>

.......

handleCurrentChangeM(val,index){
this.currentTabData[index].currentPage = val;
this.answerCommentIndex = index;
this.refreshCommentReply();
},

上一篇 下一篇

猜你喜欢

热点阅读