Skip to content

Commit

Permalink
feat: git pull
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbxs committed Jan 7, 2025
2 parents e2733c9 + b1561b5 commit 8d45445
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/table-render/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ const RenderCore: React.FC<TableRenderProps & { tableRef: any }> = props => {
pagination
};

if (typeof tableProps?.pagination === 'object' && tableProps?.pagination?.pageSize) {
initState.pagination.pageSize = tableProps.pagination.pageSize;
if (typeof tableProps?.pagination === 'object') {
if (tableProps?.pagination?.current) {
initState.pagination.current = tableProps.pagination.current;
}
if (tableProps?.pagination?.pageSize) {
initState.pagination.pageSize = tableProps.pagination.pageSize;
}
}
setState(initState);
}, []);
Expand Down

0 comments on commit 8d45445

Please sign in to comment.