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結(jié)構(gòu)
}
}).exec();