执行 setup 时,组件实例尚未被创建。所以获取不到元素的引用,需要在onMounted中进行调用。
git checkout dev
git pull https://gitee.com/cui-minghui/vant.git feature/useRect
git push origin dev