init
This commit is contained in:
6
pages_tool/components/sx-rate/common.js
Normal file
6
pages_tool/components/sx-rate/common.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export function getClientRect(selector, component) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let query = component ? uni.createSelectorQuery().in(component) : uni.createSelectorQuery();
|
||||
return query.select(selector).boundingClientRect(resolve).exec()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user