| | |
| | | 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'); |
| | |
| | | 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); |