fis-component 0.1.33 → 0.1.34
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/cjs/index.js +3 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Pagination/Pagination.stories.d.ts +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Pagination/Pagination.stories.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -76604,6 +76604,9 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
|
|
|
76604
76604
|
}
|
|
76605
76605
|
};
|
|
76606
76606
|
const rangeRecords = React.useMemo(() => {
|
|
76607
|
+
if (!total || total <= 0) {
|
|
76608
|
+
return [0, 0];
|
|
76609
|
+
}
|
|
76607
76610
|
return [
|
|
76608
76611
|
(current - 1) * pageSize + 1,
|
|
76609
76612
|
current * pageSize > total ? total : current * pageSize,
|