diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index 5d6236eec7..2a127d7823 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -624,8 +624,9 @@ export const Table: any = withDynamicSchemaProps( if (!dragSort && !showIndex) { return originNode; } - const current = props?.pagination?.current; - const pageSize = props?.pagination?.pageSize || 20; + const current = paginationProps?.current; + + const pageSize = paginationProps?.pageSize || 20; if (current) { index = index + (current - 1) * pageSize + 1; } else { @@ -674,6 +675,7 @@ export const Table: any = withDynamicSchemaProps( getRowKey, isRowSelect, memoizedRowSelection, + paginationProps, ], );