2025-08-30 elementUI pagination 实目前同一页面下多个分页

内容分享3周前发布
0 0 0

效果图:

2025-08-30 elementUI pagination 实目前同一页面下多个分页

主要代码:

<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();
},

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
none
暂无评论...