暂时的解决方案,翻页时执行选中的方法,// 上一页
prevPage() {
if (this.currentPage > 1) {
this.currentPage--;
this.paginateData();
// 修改当前页数据的 checked 属性
this.data.forEach(item => {
item.checked = false;
});
// 调用 toggleRowSelection
this.toggleAllSelection(false, this.data);
}
},
0 个回复