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" >