Showing
1 changed file
with
3 additions
and
5 deletions
| @@ -55,7 +55,7 @@ export struct Card14Component { | @@ -55,7 +55,7 @@ export struct Card14Component { | ||
| 55 | ) | 55 | ) |
| 56 | } | 56 | } |
| 57 | // 左标题,右图 | 57 | // 左标题,右图 |
| 58 | - Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.SpaceBetween }) { | 58 | + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Start }) { |
| 59 | 59 | ||
| 60 | Text() { | 60 | Text() { |
| 61 | if (this.titleMarked) { | 61 | if (this.titleMarked) { |
| @@ -77,16 +77,14 @@ export struct Card14Component { | @@ -77,16 +77,14 @@ export struct Card14Component { | ||
| 77 | .lineHeight(25) | 77 | .lineHeight(25) |
| 78 | .fontFamily('PingFang SC-Regular') | 78 | .fontFamily('PingFang SC-Regular') |
| 79 | .textAlign(TextAlign.Start) | 79 | .textAlign(TextAlign.Start) |
| 80 | - // .flexBasis('auto') | ||
| 81 | .margin({right: 12}) | 80 | .margin({right: 12}) |
| 82 | - .flexBasis(214) | 81 | + .width('64%') |
| 83 | 82 | ||
| 84 | Image(this.loadImg ? this.contentDTO.coverUrl : '') | 83 | Image(this.loadImg ? this.contentDTO.coverUrl : '') |
| 85 | .backgroundColor(0xf5f5f5) | 84 | .backgroundColor(0xf5f5f5) |
| 86 | - .flexBasis(117) | 85 | + .aspectRatio(3 / 2) |
| 87 | .height(78) | 86 | .height(78) |
| 88 | .borderRadius($r('app.float.image_border_radius')) | 87 | .borderRadius($r('app.float.image_border_radius')) |
| 89 | - // .flexBasis(160) | ||
| 90 | .backgroundImageSize(ImageSize.Auto) | 88 | .backgroundImageSize(ImageSize.Auto) |
| 91 | 89 | ||
| 92 | } | 90 | } |
-
Please register or login to post a comment