mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
fix: column index calculation error in table block (#5100)
This commit is contained in:
parent
acccd81395
commit
fc989fdbc5
@ -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,
|
||||
],
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user