From 246b94c2fc59124e6ecbb0b876ed099f1e0ff193 Mon Sep 17 00:00:00 2001 From: QJia <532612154@qq.com> Date: Thu, 14 Nov 2024 16:31:25 +0800 Subject: [PATCH] fix(@vben/common-ui): pagination current page error --- .../common-ui/src/components/icon-picker/icon-picker.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue b/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue index ed3493d0db6..131eb8ea2d7 100644 --- a/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue +++ b/packages/effects/common-ui/src/components/icon-picker/icon-picker.vue @@ -41,6 +41,7 @@ const emit = defineEmits<{ const refTrigger = useTemplateRef('refTrigger'); const currentSelect = ref(''); const currentList = ref(props.icons); +const currentPage = ref(1); watch( () => props.icons, @@ -72,6 +73,7 @@ const handleClick = (icon: string) => { }; const handlePageChange = (page: number) => { + currentPage.value = page; setCurrentPage(page); }; @@ -114,7 +116,6 @@ defineExpose({ changeOpenState }); class="flex-center flex justify-end overflow-hidden border-t py-2 pr-3" >