mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: fix useRect param (#9370)
This commit is contained in:
parent
ecdecd3013
commit
d3316ab4d5
@ -19,7 +19,7 @@ import { useRect } from '@vant/use';
|
|||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
const root = ref();
|
const root = ref();
|
||||||
const rect = useRect();
|
const rect = useRect(root);
|
||||||
|
|
||||||
console.log(rect); // -> 元素的大小及其相对于视口的位置
|
console.log(rect); // -> 元素的大小及其相对于视口的位置
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user