Showing
1 changed file
with
10 additions
and
0 deletions
| @@ -153,6 +153,11 @@ struct createImg { | @@ -153,6 +153,11 @@ struct createImg { | ||
| 153 | .width(CommonConstants.FULL_WIDTH) | 153 | .width(CommonConstants.FULL_WIDTH) |
| 154 | .aspectRatio(16 / 9) | 154 | .aspectRatio(16 / 9) |
| 155 | .borderRadius($r('app.float.image_border_radius')) | 155 | .borderRadius($r('app.float.image_border_radius')) |
| 156 | + .border({ | ||
| 157 | + width: 0.5, | ||
| 158 | + color: '#0D000000', // 5% 透明度的黑色 | ||
| 159 | + style: BorderStyle.Solid | ||
| 160 | + }) | ||
| 156 | CardMediaInfo({ contentDTO: this.contentDTO }) | 161 | CardMediaInfo({ contentDTO: this.contentDTO }) |
| 157 | } | 162 | } |
| 158 | .align(Alignment.BottomEnd) | 163 | .align(Alignment.BottomEnd) |
| @@ -171,6 +176,11 @@ struct createImg { | @@ -171,6 +176,11 @@ struct createImg { | ||
| 171 | .width(CommonConstants.FULL_WIDTH) | 176 | .width(CommonConstants.FULL_WIDTH) |
| 172 | .borderRadius($r('app.float.image_border_radius')) | 177 | .borderRadius($r('app.float.image_border_radius')) |
| 173 | .aspectRatio(172 / 230) | 178 | .aspectRatio(172 / 230) |
| 179 | + .border({ | ||
| 180 | + width: 0.5, | ||
| 181 | + color: '#0D000000', // 5% 透明度的黑色 | ||
| 182 | + style: BorderStyle.Solid | ||
| 183 | + }) | ||
| 174 | CardMediaInfo({ contentDTO: this.contentDTO }) | 184 | CardMediaInfo({ contentDTO: this.contentDTO }) |
| 175 | } | 185 | } |
| 176 | .align(Alignment.BottomEnd) | 186 | .align(Alignment.BottomEnd) |
-
Please register or login to post a comment