mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
fix(warningArea): paginator first page is negative
This commit is contained in:
parent
b2e64b8273
commit
7becca2c34
@ -38,7 +38,7 @@ export const Pagination: React.FC<Props> = ({
|
||||
endIdx = ShowPagesNumber;
|
||||
}
|
||||
if (currentPage + 3 >= lastPage) {
|
||||
startIdx = lastPage - ShowPagesNumber;
|
||||
startIdx = Math.max(0, lastPage - ShowPagesNumber);
|
||||
endIdx = lastPage;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user