Showing
1 changed file
with
12 additions
and
7 deletions
| @@ -37,13 +37,13 @@ export struct AppointmentListChildComponent { | @@ -37,13 +37,13 @@ export struct AppointmentListChildComponent { | ||
| 37 | Image(this.loadImg ? this.item?.imageUrl[0] : '') | 37 | Image(this.loadImg ? this.item?.imageUrl[0] : '') |
| 38 | .backgroundColor(this.loadImg ? $r('app.color.color_B0B0B0') : 0xf5f5f5) | 38 | .backgroundColor(this.loadImg ? $r('app.color.color_B0B0B0') : 0xf5f5f5) |
| 39 | .width('100%') | 39 | .width('100%') |
| 40 | + .constraintSize({ | ||
| 41 | + maxHeight: 196 | ||
| 42 | + }) | ||
| 40 | .aspectRatio(16 / 9) | 43 | .aspectRatio(16 / 9) |
| 41 | .objectFit(ImageFit.Auto) | 44 | .objectFit(ImageFit.Auto) |
| 42 | .interpolation(ImageInterpolation.High) | 45 | .interpolation(ImageInterpolation.High) |
| 43 | - .borderRadius({ | ||
| 44 | - topLeft: 4, | ||
| 45 | - topRight: 4 | ||
| 46 | - }) | 46 | + .borderRadius(4) |
| 47 | 47 | ||
| 48 | 48 | ||
| 49 | if (this.item.status == "wait") { | 49 | if (this.item.status == "wait") { |
| @@ -70,14 +70,19 @@ export struct AppointmentListChildComponent { | @@ -70,14 +70,19 @@ export struct AppointmentListChildComponent { | ||
| 70 | .layoutWeight(1) | 70 | .layoutWeight(1) |
| 71 | .textAlign(TextAlign.Start) | 71 | .textAlign(TextAlign.Start) |
| 72 | } | 72 | } |
| 73 | - .margin({ bottom: 8, right: 8 }) | 73 | + .margin({ bottom: 12, right: 8 }) |
| 74 | .alignItems(VerticalAlign.Center) | 74 | .alignItems(VerticalAlign.Center) |
| 75 | - }.width('100%') | 75 | + } |
| 76 | + .width('100%') | ||
| 76 | .height('100%') | 77 | .height('100%') |
| 77 | .alignItems(VerticalAlign.Bottom) | 78 | .alignItems(VerticalAlign.Bottom) |
| 78 | .justifyContent(FlexAlign.End) | 79 | .justifyContent(FlexAlign.End) |
| 80 | + .position({ | ||
| 81 | + x: '80.5%' | ||
| 82 | + }) | ||
| 79 | } | 83 | } |
| 80 | - }.width('100%') | 84 | + } |
| 85 | + .width('100%') | ||
| 81 | .height(196) | 86 | .height(196) |
| 82 | 87 | ||
| 83 | Column() { | 88 | Column() { |
-
Please register or login to post a comment