fui-material 2.6.9 → 2.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -1252,7 +1252,7 @@ const usePagination = ({
|
|
|
1252
1252
|
}) => {
|
|
1253
1253
|
const paginationRange = useMemo(() => {
|
|
1254
1254
|
const totalPageCount = Math.ceil(totalCount / pageSize);
|
|
1255
|
-
const totalPageNumbers = siblingCount + 5;
|
|
1255
|
+
const totalPageNumbers = siblingCount * 2 + 5;
|
|
1256
1256
|
if (totalPageNumbers >= totalPageCount) {
|
|
1257
1257
|
return range(1, totalPageCount);
|
|
1258
1258
|
}
|
|
@@ -1282,7 +1282,7 @@ const usePagination = ({
|
|
|
1282
1282
|
const middleRange = range(leftSiblingIndex, rightSiblingIndex);
|
|
1283
1283
|
return [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex];
|
|
1284
1284
|
}
|
|
1285
|
-
return
|
|
1285
|
+
return range(1, totalPageCount);
|
|
1286
1286
|
}, [totalCount, pageSize, siblingCount, currentPage]);
|
|
1287
1287
|
return paginationRange;
|
|
1288
1288
|
};
|