fix(table): index column value error #187
This commit is contained in:
parent
6d5c49f0a2
commit
056fc13116
|
|
@ -73,8 +73,7 @@ function handleIndexColumn(
|
||||||
return `${index + 1}`;
|
return `${index + 1}`;
|
||||||
}
|
}
|
||||||
const { current = 1, pageSize = PAGE_SIZE } = getPagination;
|
const { current = 1, pageSize = PAGE_SIZE } = getPagination;
|
||||||
const currentIndex = (current - 1) * pageSize + index + 1;
|
return ((current < 1 ? 1 : current) - 1) * pageSize + index + 1;
|
||||||
return currentIndex;
|
|
||||||
},
|
},
|
||||||
...(isFixedLeft
|
...(isFixedLeft
|
||||||
? {
|
? {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue