diff --git a/packages/core/useOffsetPagination/index.ts b/packages/core/useOffsetPagination/index.ts index 0ba6060a435..91ed045884f 100644 --- a/packages/core/useOffsetPagination/index.ts +++ b/packages/core/useOffsetPagination/index.ts @@ -62,7 +62,7 @@ export function useOffsetPagination(options: UseOffsetPaginationOptions): UseOff onPageCountChange = noop, } = options - const currentPageSize = computed(() => Math.min(unref(pageSize), 1)) + const currentPageSize = useClamp(pageSize, 1, Infinity) const pageCount = computed(() => Math.ceil((unref(total)) / unref(currentPageSize)))