Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -67,6 +67,7 @@ export struct Card2Component { | @@ -67,6 +67,7 @@ export struct Card2Component { | ||
| 67 | .fontSize($r('app.float.font_size_18')) | 67 | .fontSize($r('app.float.font_size_18')) |
| 68 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) | 68 | .fontColor(this.clicked ? 0x848484 : $r('app.color.color_222222')) |
| 69 | .maxLines(2) | 69 | .maxLines(2) |
| 70 | + .lineHeight(25) | ||
| 70 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 | 71 | .textOverflow({ overflow: TextOverflow.Ellipsis }) // 超出的部分显示省略号。 |
| 71 | .align(Alignment.Start) | 72 | .align(Alignment.Start) |
| 72 | .textIndent(this.contentDTO.newTags?.length < 5 && this.contentDTO.newTags?.length > 2 ? 58 : | 73 | .textIndent(this.contentDTO.newTags?.length < 5 && this.contentDTO.newTags?.length > 2 ? 58 : |
-
Please register or login to post a comment