I am currently working on a project using Vue js, Element Plus Table, and Pagination. The issue I am facing is that all columns of the table are sortable, but the sorting only works on the current page. I need to be able to sort all my data across multiple pages. To handle pagination, I have implemented a computed variable as shown below:
pagedTableData() {
const data = this.tableData.slice(
this.pageSize * this.page - this.pageSize,
this.pageSize * this.page
);
return data;
}
Here is the structure of my table:
<el-table
:columns="this.columns"
:data="this.pagedTableData"
:key="this.tableKey"
style="width: 100%"
id="elTable">
<el-table>
Could someone provide guidance on how to implement sorting across all pages and obtain all of my data?