Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -200,13 +200,13 @@ struct createImg { | @@ -200,13 +200,13 @@ struct createImg { | ||
| 200 | } | 200 | } |
| 201 | } else { | 201 | } else { |
| 202 | GridCol({ | 202 | GridCol({ |
| 203 | - span: { xs: 8 } | 203 | + span: item.landscape === 1 ? 12 : 8 |
| 204 | }) { | 204 | }) { |
| 205 | Image(this.loadImg ? item.fullUrl : '') | 205 | Image(this.loadImg ? item.fullUrl : '') |
| 206 | .backgroundColor(0xf5f5f5) | 206 | .backgroundColor(0xf5f5f5) |
| 207 | .width('100%') | 207 | .width('100%') |
| 208 | - .borderRadius(this.caclImageRadius(index)) | ||
| 209 | .autoResize(true) | 208 | .autoResize(true) |
| 209 | + .borderRadius(this.caclImageRadius(index)) | ||
| 210 | .opacity(!this.picWidth && !this.picHeight ? 0 : 1) | 210 | .opacity(!this.picWidth && !this.picHeight ? 0 : 1) |
| 211 | .onComplete(callback => { | 211 | .onComplete(callback => { |
| 212 | this.picWidth = callback?.width || 0; | 212 | this.picWidth = callback?.width || 0; |
-
Please register or login to post a comment