Skip to content

Commit 2d3a2b9

Browse files
committed
fix: @vueuse/core
1 parent 2abc8eb commit 2d3a2b9

File tree

4 files changed

+292
-249
lines changed

4 files changed

+292
-249
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ registry="https://registry.npmjs.org/"
55
public-hoist-pattern[]=vue
66
public-hoist-pattern[]=vite
77
public-hoist-pattern[]=rollup
8-
public-hoist-pattern[]=@vueuse/core
98
public-hoist-pattern[]=acorn

docs/.vitepress/components/BodyScrollbar.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@ import {
55
useWindowScroll,
66
useWindowSize,
77
} from '@vueuse/core';
8-
import { computed, onMounted, shallowRef, type CSSProperties } from 'vue';
8+
import { computed, shallowRef, type CSSProperties } from 'vue';
99
1010
const { y, x } = useWindowScroll();
1111
const { height: winH, width: winW } = useWindowSize();
12-
const bodyRef = shallowRef<HTMLElement>(); // support ssr
13-
onMounted(() => {
14-
bodyRef.value = document.body;
15-
});
16-
const body = useElementBounding(bodyRef);
12+
const body = useElementBounding(document.body);
1713
1814
// see https://github.com/user-attachments/assets/89796d25-b360-4486-9cf7-79a5e598022c
1915
const errorDistance = 2;

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"@gkd-kit/selector": "0.5.22",
1414
"@types/file-saver": "2.0.7",
1515
"@types/jsdom": "21.1.7",
16-
"@types/node": "22.13.13",
16+
"@types/node": "22.15.3",
17+
"@vueuse/core": "13.1.0",
1718
"acorn-walk": "8.3.4",
1819
"cross-env": "7.0.3",
1920
"file-saver": "2.0.5",
@@ -22,20 +23,20 @@
2223
"markdown-it-mathjax3": "4.3.2",
2324
"naive-ui": "2.41.0",
2425
"prettier": "3.5.3",
25-
"tsx": "4.19.3",
26-
"typedoc": "0.28.1",
27-
"typedoc-plugin-markdown": "4.6.0",
26+
"tsx": "4.19.4",
27+
"typedoc": "0.28.3",
28+
"typedoc-plugin-markdown": "4.6.3",
2829
"typedoc-vitepress-theme": "1.1.2",
29-
"typescript": "5.8.2",
30-
"unocss": "65.5.0",
30+
"typescript": "5.8.3",
31+
"unocss": "66.0.0",
3132
"unplugin-data": "0.1.1",
3233
"vitepress": "1.6.3"
3334
},
3435
"volta": {
3536
"node": "22.15.0",
3637
"pnpm": "10.10.0"
3738
},
38-
"packageManager": "pnpm@10.6.5",
39+
"packageManager": "pnpm@10.10.0",
3940
"pnpm": {
4041
"peerDependencyRules": {
4142
"ignoreMissing": [

0 commit comments

Comments
 (0)