From eb7366f400867d3f401fe60f06d848d6d1448457 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 17 十月 2022 17:41:56 +0800
Subject: [PATCH] 2022.10.17
---
component/mygallery/mygallery.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/component/mygallery/mygallery.js b/component/mygallery/mygallery.js
index 481f0ad..08bf58c 100644
--- a/component/mygallery/mygallery.js
+++ b/component/mygallery/mygallery.js
@@ -30,7 +30,7 @@
observer(newVal) {
if (newVal) {
let that = this;
- let query = this.createSelectorQuery(); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
+ let query = this.createSelectorQuery().in(this); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
setTimeout(() => {
query.select('.fyui-gallery__img').boundingClientRect(function (rect) {
console.log('observer');
@@ -298,7 +298,7 @@
console.log(yLimit);
let that = this;
- let query = this.createSelectorQuery(); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
+ let query = this.createSelectorQuery().in(this); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
query.select('.fyui-gallery__img').boundingClientRect(function (rect) {
console.log('imgHeight:' + that.data.imgHeight);
console.log('imgWidth:' + that.data.imgWidth);
--
Gitblit v1.9.3