Showing
1 changed file
with
12 additions
and
1 deletions
| @@ -130,7 +130,7 @@ export struct CardMediaInfo { | @@ -130,7 +130,7 @@ export struct CardMediaInfo { | ||
| 130 | Image($r('app.media.card_image')) | 130 | Image($r('app.media.card_image')) |
| 131 | .mediaLogo() | 131 | .mediaLogo() |
| 132 | Text(`${this.contentDTO.photoNum}`) | 132 | Text(`${this.contentDTO.photoNum}`) |
| 133 | - .mediaText() | 133 | + .mediaTextImgtype() |
| 134 | } | 134 | } |
| 135 | .margin({ left: 80,top: 55}) | 135 | .margin({ left: 80,top: 55}) |
| 136 | 136 | ||
| @@ -185,3 +185,14 @@ function mediaText() { | @@ -185,3 +185,14 @@ function mediaText() { | ||
| 185 | offsetY: 2 | 185 | offsetY: 2 |
| 186 | }) | 186 | }) |
| 187 | } | 187 | } |
| 188 | +@Extend(Text) | ||
| 189 | +function mediaTextImgtype() { | ||
| 190 | + .fontColor($r('app.color.color_fff')) | ||
| 191 | + .fontSize($r('app.float.font_size_13')) | ||
| 192 | + .lineHeight(18) | ||
| 193 | + .textShadow({ | ||
| 194 | + radius: 2, | ||
| 195 | + color: 'rgba(0,0,0,0.3)', | ||
| 196 | + offsetY: 2 | ||
| 197 | + }) | ||
| 198 | +} |
-
Please register or login to post a comment