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
|
@@ -66,3 +66,4 @@ export declare const Default: StoryObj<PaginationProps>;
|
|
|
66
66
|
export declare const Minimized: StoryObj<PaginationProps>;
|
|
67
67
|
export declare const CustomTotal: StoryObj<PaginationProps>;
|
|
68
68
|
export declare const WithRecordCounted: StoryObj<PaginationProps>;
|
|
69
|
+
export declare const Empty: StoryObj<PaginationProps>;
|
package/dist/esm/index.js
CHANGED
|
@@ -76584,6 +76584,9 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
|
|
|
76584
76584
|
}
|
|
76585
76585
|
};
|
|
76586
76586
|
const rangeRecords = useMemo$1(() => {
|
|
76587
|
+
if (!total || total <= 0) {
|
|
76588
|
+
return [0, 0];
|
|
76589
|
+
}
|
|
76587
76590
|
return [
|
|
76588
76591
|
(current - 1) * pageSize + 1,
|
|
76589
76592
|
current * pageSize > total ? total : current * pageSize,
|