@mantine-vue/hooks 3.1.0 → 3.2.0
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/cjs/index.cjs +1 -1
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +1 -1
- package/esm/index.mjs.map +1 -1
- package/lib/use-pagination/use-pagination.d.ts +1 -1
- package/package.json +1 -1
package/cjs/index.cjs
CHANGED
|
@@ -1006,7 +1006,7 @@ function range$1(start, end) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
function usePagination({ total, siblings = 1, boundaries = 1, page, initialPage, onChange, startValue = 1 }) {
|
|
1008
1008
|
const start = (0, vue.computed)(() => Math.max(Math.trunc(startValue), 1));
|
|
1009
|
-
const end = (0, vue.computed)(() => Math.max(Math.trunc(total), start.value));
|
|
1009
|
+
const end = (0, vue.computed)(() => Math.max(Math.trunc((0, vue.toValue)(total)), start.value));
|
|
1010
1010
|
const totalPages = (0, vue.computed)(() => end.value - start.value + 1);
|
|
1011
1011
|
const firstPage = (0, vue.computed)(() => initialPage ?? start.value);
|
|
1012
1012
|
const [active, setActive] = useUncontrolled({
|