Showing
1 changed file
with
10 additions
and
7 deletions
| @@ -146,13 +146,16 @@ export struct RmhTitle { | @@ -146,13 +146,16 @@ export struct RmhTitle { | ||
| 146 | .height(16) | 146 | .height(16) |
| 147 | } | 147 | } |
| 148 | } | 148 | } |
| 149 | - Text(this.rmhInfo?.rmhDesc.replaceAll('\n', '')) | ||
| 150 | - .fontSize($r("app.float.font_size_12")) | ||
| 151 | - .fontColor($r("app.color.color_B0B0B0")) | ||
| 152 | - .maxLines(1) | ||
| 153 | - .alignSelf(ItemAlign.Start) | ||
| 154 | - .textOverflow({ overflow: TextOverflow.Ellipsis }) | ||
| 155 | - .textAlign(TextAlign.Start) | 149 | + if(this.rmhInfo?.rmhDesc != undefined){ |
| 150 | + Text(this.rmhInfo?.rmhDesc.replaceAll('\n', '')) | ||
| 151 | + .fontSize($r("app.float.font_size_12")) | ||
| 152 | + .fontColor($r("app.color.color_B0B0B0")) | ||
| 153 | + .maxLines(1) | ||
| 154 | + .alignSelf(ItemAlign.Start) | ||
| 155 | + .textOverflow({ overflow: TextOverflow.Ellipsis }) | ||
| 156 | + .textAlign(TextAlign.Start) | ||
| 157 | + } | ||
| 158 | + | ||
| 156 | } | 159 | } |
| 157 | .width('75%') | 160 | .width('75%') |
| 158 | } | 161 | } |
-
Please register or login to post a comment