From 0e3f4e7e36df02eea4b619083eaeac59c379f446 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 1 Nov 2023 12:45:53 +0000 Subject: [PATCH] fix: avoid rendering options using v-for to function virtual scroll properly --- packages/nc-gui/components/nc/Pagination.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/nc/Pagination.vue b/packages/nc-gui/components/nc/Pagination.vue index caf622827b..3efe511692 100644 --- a/packages/nc-gui/components/nc/Pagination.vue +++ b/packages/nc-gui/components/nc/Pagination.vue @@ -42,7 +42,10 @@ const goToFirstPage = () => { } const pagesList = computed(() => { - return Array.from({ length: totalPages.value }, (_, i) => i + 1) + return Array.from({ length: totalPages.value }, (_, i) => ({ + value: i + 1, + label: i + 1, + })) }) @@ -71,11 +74,10 @@ const pagesList = computed(() => {
- + - {{ p }} {{ mode !== 'full' ? '/' : 'of' }}