diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index ac02193..9f96001 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -3,6 +3,7 @@ props.total) { currentPage.value = 1; @@ -67,6 +70,7 @@ function handleSizeChange(val: number) { scrollTo(0, 800); } } + function handleCurrentChange(val: number) { emit('pagination', { page: val, limit: pageSize.value }); if (props.autoScroll) { @@ -78,10 +82,12 @@ function handleCurrentChange(val: number) {