mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
remove currentPage
This commit is contained in:
@@ -41,10 +41,6 @@
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
},
|
},
|
||||||
currentPage: {
|
|
||||||
type: Number,
|
|
||||||
default: 1
|
|
||||||
},
|
|
||||||
pageSize: {
|
pageSize: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 20
|
default: 20
|
||||||
@@ -72,9 +68,9 @@
|
|||||||
const appearanceSettingsStore = useAppearanceSettingsStore();
|
const appearanceSettingsStore = useAppearanceSettingsStore();
|
||||||
const vrcxStore = useVrcxStore();
|
const vrcxStore = useVrcxStore();
|
||||||
|
|
||||||
const { data, currentPage, pageSize, tableProps, paginationProps, filters } = toRefs(props);
|
const { data, pageSize, tableProps, paginationProps, filters } = toRefs(props);
|
||||||
|
|
||||||
const internalCurrentPage = ref(currentPage.value);
|
const internalCurrentPage = ref(1);
|
||||||
const internalPageSize = ref(pageSize.value);
|
const internalPageSize = ref(pageSize.value);
|
||||||
|
|
||||||
const asRawArray = (value) => (Array.isArray(value) ? toRaw(value) : []);
|
const asRawArray = (value) => (Array.isArray(value) ? toRaw(value) : []);
|
||||||
@@ -186,10 +182,6 @@
|
|||||||
internalCurrentPage.value = page;
|
internalCurrentPage.value = page;
|
||||||
};
|
};
|
||||||
|
|
||||||
watch(currentPage, (newVal) => {
|
|
||||||
internalCurrentPage.value = newVal;
|
|
||||||
});
|
|
||||||
|
|
||||||
watch(pageSize, (newVal) => {
|
watch(pageSize, (newVal) => {
|
||||||
internalPageSize.value = newVal;
|
internalPageSize.value = newVal;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user