3h1-ui 2.1.7 → 2.1.8
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/es/index.js +2 -4
- package/lib/index.js +2 -4
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -23716,10 +23716,8 @@ const usePagination = () => {
|
|
|
23716
23716
|
pageSizeOptions: ["10", "20", "30", "40"]
|
|
23717
23717
|
});
|
|
23718
23718
|
const setPage = (pageInfo) => {
|
|
23719
|
-
|
|
23720
|
-
|
|
23721
|
-
page[key2] = pageInfo[key2];
|
|
23722
|
-
});
|
|
23719
|
+
Object.keys(pageInfo).forEach((key2) => {
|
|
23720
|
+
page[key2] = pageInfo[key2];
|
|
23723
23721
|
});
|
|
23724
23722
|
};
|
|
23725
23723
|
return { page, setPage };
|
package/lib/index.js
CHANGED
|
@@ -23718,10 +23718,8 @@ const usePagination = () => {
|
|
|
23718
23718
|
pageSizeOptions: ["10", "20", "30", "40"]
|
|
23719
23719
|
});
|
|
23720
23720
|
const setPage = (pageInfo) => {
|
|
23721
|
-
|
|
23722
|
-
|
|
23723
|
-
page[key2] = pageInfo[key2];
|
|
23724
|
-
});
|
|
23721
|
+
Object.keys(pageInfo).forEach((key2) => {
|
|
23722
|
+
page[key2] = pageInfo[key2];
|
|
23725
23723
|
});
|
|
23726
23724
|
};
|
|
23727
23725
|
return { page, setPage };
|