mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +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) {
|
if (!dragSort && !showIndex) {
|
||||||
return originNode;
|
return originNode;
|
||||||
}
|
}
|
||||||
const current = props?.pagination?.current;
|
const current = paginationProps?.current;
|
||||||
const pageSize = props?.pagination?.pageSize || 20;
|
|
||||||
|
const pageSize = paginationProps?.pageSize || 20;
|
||||||
if (current) {
|
if (current) {
|
||||||
index = index + (current - 1) * pageSize + 1;
|
index = index + (current - 1) * pageSize + 1;
|
||||||
} else {
|
} else {
|
||||||
@ -674,6 +675,7 @@ export const Table: any = withDynamicSchemaProps(
|
|||||||
getRowKey,
|
getRowKey,
|
||||||
isRowSelect,
|
isRowSelect,
|
||||||
memoizedRowSelection,
|
memoizedRowSelection,
|
||||||
|
paginationProps,
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user