eg:<script setup lang="ts">
import { getCurrentInstance, computed, ref, watch, onMounted } from 'vue';
const app = getCurrentInstance();
const query = uni.createSelectorQuery().in(app);
query.select('.container>.right-scroll-view').boundingClientRect(data => {
if (data) {
console.log("获取到布局信息", data);
// 这里返回的data就是我们需要的dom结构
}
}).exec();