fix: gantt block pagination (#3918)

* fix: gantt block  pagination

* fix: gantt block  pagination
This commit is contained in:
katherinehhh 2024-04-03 20:48:51 +08:00 committed by GitHub
parent 2be065984c
commit fc503321ae
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: field.componentProps.pagination,
pagination: fieldSchema?.['x-component-props']?.pagination,
onRowSelectionChange: useCallback((selectedRowKeys) => {
ctx.field.data = ctx?.field?.data || {};
ctx.field.data.selectedRowKeys = selectedRowKeys;