Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
1 changed file
with
2 additions
and
5 deletions
| @@ -149,7 +149,7 @@ export struct LiveLikeComponent { | @@ -149,7 +149,7 @@ export struct LiveLikeComponent { | ||
| 149 | .textAlign(TextAlign.Center) | 149 | .textAlign(TextAlign.Center) |
| 150 | .alignRules({ | 150 | .alignRules({ |
| 151 | top: { anchor: "__container__", align: VerticalAlign.Top }, | 151 | top: { anchor: "__container__", align: VerticalAlign.Top }, |
| 152 | - left: { anchor: "__container__", align: HorizontalAlign.Start } | 152 | + right: { anchor: "__container__", align: HorizontalAlign.End } |
| 153 | }) | 153 | }) |
| 154 | /*动态计算文字宽度*/ | 154 | /*动态计算文字宽度*/ |
| 155 | .width(this.getMeasureText(NumberFormatterUtils.formatNumberWithWan(this.likeCount || '')) + | 155 | .width(this.getMeasureText(NumberFormatterUtils.formatNumberWithWan(this.likeCount || '')) + |
| @@ -158,10 +158,7 @@ export struct LiveLikeComponent { | @@ -158,10 +158,7 @@ export struct LiveLikeComponent { | ||
| 158 | .id("Text") | 158 | .id("Text") |
| 159 | .visibility(this.likeCount > 0 ? Visibility.Visible : Visibility.Hidden) | 159 | .visibility(this.likeCount > 0 ? Visibility.Visible : Visibility.Hidden) |
| 160 | } | 160 | } |
| 161 | - .margin({left:10,top:3}) | ||
| 162 | - .offset({ | ||
| 163 | - x: 18 | ||
| 164 | - }) | 161 | + .margin({right:0,top:3}) |
| 165 | } | 162 | } |
| 166 | } | 163 | } |
| 167 | .width(36) | 164 | .width(36) |
-
Please register or login to post a comment