From 82dc7d2589f0f4f29956e66f15b49ca9415bafd6 Mon Sep 17 00:00:00 2001 From: xiaoma <735878602@qq.com> Date: Sat, 28 Aug 2021 11:54:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=88=86=E9=A1=B5=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/hooks/usePagination.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Table/src/hooks/usePagination.ts b/src/components/Table/src/hooks/usePagination.ts index d0b6e5a..cf37b98 100644 --- a/src/components/Table/src/hooks/usePagination.ts +++ b/src/components/Table/src/hooks/usePagination.ts @@ -14,16 +14,15 @@ export function usePagination(refProps: ComputedRef) { if (!unref(show) || (isBoolean(pagination) && !pagination)) { return false; } - const { pageField, totalField } = APISETTING; + const { totalField } = APISETTING; return { - page: unref(configRef)[pageField], - pageCount: unref(configRef)[totalField], pageSize: DEFAULTPAGESIZE, pageSizes: PAGESIZES, showSizePicker: true, showQuickJumper: true, ...(isBoolean(pagination) ? {} : pagination), ...unref(configRef), + pageCount: unref(configRef)[totalField], }; });