mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 07:13:51 +02:00
Fix previous instance page index and sort order
This commit is contained in:
@@ -176,6 +176,10 @@
|
||||
type: Function,
|
||||
default: null
|
||||
},
|
||||
onSortChange: {
|
||||
type: Function,
|
||||
default: null
|
||||
},
|
||||
onRowClick: {
|
||||
type: Function,
|
||||
default: null
|
||||
@@ -323,6 +327,14 @@
|
||||
}
|
||||
});
|
||||
|
||||
const sortBy = computed(() => props.table.getState?.().sorting ?? []);
|
||||
|
||||
watch(sortBy, (newSorting) => {
|
||||
if (props.onSortChange) {
|
||||
props.onSortChange(newSorting);
|
||||
}
|
||||
});
|
||||
|
||||
watch([currentPage, pageSizeProxy], async () => {
|
||||
await nextTick();
|
||||
if (tableScrollRef.value) {
|
||||
|
||||
Reference in New Issue
Block a user