fix: fix Pagination (#3921)

This commit is contained in:
Zeke Zhang 2024-04-03 23:18:19 +08:00 committed by GitHub
parent 1ec5c1c9c2
commit 0a64855bfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ export const useTableBlockProps = () => {
showIndex: ctx.showIndex,
dragSort: ctx.dragSort && ctx.dragSortBy,
rowKey: ctx.rowKey || 'id',
pagination: fieldSchema?.['x-component-props']?.pagination,
pagination: fieldSchema?.['x-component-props']?.pagination === false ? false : field.componentProps.pagination,
onRowSelectionChange: useCallback((selectedRowKeys) => {
ctx.field.data = ctx?.field?.data || {};
ctx.field.data.selectedRowKeys = selectedRowKeys;