From d3316ab4d50763df4509ea89aabcf9d518191e88 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 1 Sep 2021 15:53:28 +0800 Subject: [PATCH] docs: fix useRect param (#9370) --- docs/markdown/use-rect.zh-CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/markdown/use-rect.zh-CN.md b/docs/markdown/use-rect.zh-CN.md index 87a3dab8e..23f726edb 100644 --- a/docs/markdown/use-rect.zh-CN.md +++ b/docs/markdown/use-rect.zh-CN.md @@ -19,7 +19,7 @@ import { useRect } from '@vant/use'; export default { setup() { const root = ref(); - const rect = useRect(); + const rect = useRect(root); console.log(rect); // -> 元素的大小及其相对于视口的位置