@tarojs/runtime 4.0.9 → 4.0.10-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runtime.esm.js
CHANGED
|
@@ -3244,6 +3244,13 @@ function getBoundingClientRectImpl() {
|
|
|
3244
3244
|
return Promise.resolve(null);
|
|
3245
3245
|
return new Promise(resolve => {
|
|
3246
3246
|
const query = options.miniGlobal.createSelectorQuery();
|
|
3247
|
+
// ref: https://opendocs.alipay.com/mini/api/na4yun
|
|
3248
|
+
if (process.env.TARO_ENV === 'alipay') {
|
|
3249
|
+
query.select(`#${this.uid}`).boundingClientRect().exec(res => {
|
|
3250
|
+
resolve(res);
|
|
3251
|
+
});
|
|
3252
|
+
return;
|
|
3253
|
+
}
|
|
3247
3254
|
query.select(`#${this.uid}`).boundingClientRect(res => {
|
|
3248
3255
|
resolve(res);
|
|
3249
3256
|
}).exec();
|