mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 21:28:34 +08:00
fix: table select pagination error (#4078)
This commit is contained in:
parent
a88b32bc7a
commit
a3795c2ec3
@ -309,13 +309,7 @@ export const useTableSelectorProps = () => {
|
|||||||
showIndex: false,
|
showIndex: false,
|
||||||
dragSort: false,
|
dragSort: false,
|
||||||
rowKey: ctx.rowKey || 'id',
|
rowKey: ctx.rowKey || 'id',
|
||||||
pagination:
|
pagination: fieldSchema?.['x-component-props']?.pagination === false ? false : field.componentProps.pagination,
|
||||||
ctx?.params?.paginate !== false
|
|
||||||
? {
|
|
||||||
defaultCurrent: ctx?.params?.page || 1,
|
|
||||||
defaultPageSize: ctx?.params?.pageSize,
|
|
||||||
}
|
|
||||||
: false,
|
|
||||||
onRowSelectionChange(selectedRowKeys, selectedRows) {
|
onRowSelectionChange(selectedRowKeys, selectedRows) {
|
||||||
ctx.field.data = ctx?.field?.data || {};
|
ctx.field.data = ctx?.field?.data || {};
|
||||||
ctx.field.data.selectedRowKeys = selectedRowKeys;
|
ctx.field.data.selectedRowKeys = selectedRowKeys;
|
||||||
|
Loading…
Reference in New Issue
Block a user