Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -38,7 +38,7 @@ export struct Card2Component { | @@ -38,7 +38,7 @@ export struct Card2Component { | ||
| 38 | Text(this.contentDTO.newsTitle) | 38 | Text(this.contentDTO.newsTitle) |
| 39 | .fontSize($r('app.float.font_size_17')) | 39 | .fontSize($r('app.float.font_size_17')) |
| 40 | .fontColor($r('app.color.color_222222')) | 40 | .fontColor($r('app.color.color_222222')) |
| 41 | - .maxLines(3) | 41 | + .maxLines(2) |
| 42 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 | 42 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 |
| 43 | .align(Alignment.Start) | 43 | .align(Alignment.Start) |
| 44 | //大图 | 44 | //大图 |
| @@ -41,7 +41,7 @@ export struct BigPicCardComponent { | @@ -41,7 +41,7 @@ export struct BigPicCardComponent { | ||
| 41 | Text(this.compDTO.operDataList[0].newsTitle) | 41 | Text(this.compDTO.operDataList[0].newsTitle) |
| 42 | .fontSize(17) | 42 | .fontSize(17) |
| 43 | .fontColor('#222222') | 43 | .fontColor('#222222') |
| 44 | - .maxLines(3) | 44 | + .maxLines(2) |
| 45 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 | 45 | .textOverflow({ overflow: TextOverflow.Ellipsis })// 超出的部分显示省略号。 |
| 46 | .align(Alignment.Start) | 46 | .align(Alignment.Start) |
| 47 | //大图 | 47 | //大图 |
-
Please register or login to post a comment