UNPKG

@meleon/uni-ui

Version:

A uniapp components library written in vue3 and typescript

1 lines 370 B
export function getRect(e,n){return new Promise((function(t){uni.createSelectorQuery().in(e).select(n).boundingClientRect().exec((function(e){return void 0===e&&(e=[]),t(e[0])}))}))}export function getAllRect(e,n){return new Promise((function(t){uni.createSelectorQuery().in(e).selectAll(n).boundingClientRect().exec((function(e){return void 0===e&&(e=[]),t(e[0])}))}))}