Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -48,7 +48,8 @@ export struct ZhGridLayout02NewsContent { | @@ -48,7 +48,8 @@ export struct ZhGridLayout02NewsContent { | ||
| 48 | Image(this.loadImg ? item == undefined ? '' : item.fullColumnImgUrls[0].url : '') | 48 | Image(this.loadImg ? item == undefined ? '' : item.fullColumnImgUrls[0].url : '') |
| 49 | .backgroundColor(0xf5f5f5) | 49 | .backgroundColor(0xf5f5f5) |
| 50 | .width('100%') | 50 | .width('100%') |
| 51 | - .height(95) | 51 | + // .height(95) |
| 52 | + .aspectRatio(167 / 95) | ||
| 52 | .borderWidth(0.5) | 53 | .borderWidth(0.5) |
| 53 | .borderColor($r('app.color.color_0D000000')) | 54 | .borderColor($r('app.color.color_0D000000')) |
| 54 | .borderRadius(4) | 55 | .borderRadius(4) |
-
Please register or login to post a comment