Showing
1 changed file
with
7 additions
and
5 deletions
| @@ -25,13 +25,13 @@ export struct TabLiveItemComponent { | @@ -25,13 +25,13 @@ export struct TabLiveItemComponent { | ||
| 25 | Text(this.item.senderUserName) | 25 | Text(this.item.senderUserName) |
| 26 | .maxLines(1) | 26 | .maxLines(1) |
| 27 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 27 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 28 | - .fontSize('14fp') | 28 | + .fontSize('14vp') |
| 29 | .fontWeight(400) | 29 | .fontWeight(400) |
| 30 | .fontColor('#222222') | 30 | .fontColor('#222222') |
| 31 | Text(this.item.role === 'host' ? '主持人' : '嘉宾') | 31 | Text(this.item.role === 'host' ? '主持人' : '嘉宾') |
| 32 | .maxLines(1) | 32 | .maxLines(1) |
| 33 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 33 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 34 | - .fontSize('11fp') | 34 | + .fontSize('11vp') |
| 35 | .fontWeight(400) | 35 | .fontWeight(400) |
| 36 | .fontColor('#968562') | 36 | .fontColor('#968562') |
| 37 | .backgroundColor('#F1EFEB') | 37 | .backgroundColor('#F1EFEB') |
| @@ -44,17 +44,18 @@ export struct TabLiveItemComponent { | @@ -44,17 +44,18 @@ export struct TabLiveItemComponent { | ||
| 44 | .borderRadius(2) | 44 | .borderRadius(2) |
| 45 | .margin({ left: 8 }) | 45 | .margin({ left: 8 }) |
| 46 | .visibility(StringUtils.isNotEmpty(this.item.role) ? Visibility.Visible : Visibility.None) | 46 | .visibility(StringUtils.isNotEmpty(this.item.role) ? Visibility.Visible : Visibility.None) |
| 47 | + | ||
| 47 | Text(DateTimeUtils.getCommentTime(new Date(this.item.time).getTime())) | 48 | Text(DateTimeUtils.getCommentTime(new Date(this.item.time).getTime())) |
| 48 | .maxLines(1) | 49 | .maxLines(1) |
| 49 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 50 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 50 | - .fontSize('12fp') | 51 | + .fontSize('12vp') |
| 51 | .fontWeight(400) | 52 | .fontWeight(400) |
| 52 | .fontColor('#999999') | 53 | .fontColor('#999999') |
| 53 | .margin({ left: 8 }) | 54 | .margin({ left: 8 }) |
| 54 | .visibility(StringUtils.isNotEmpty(this.item.time) ? Visibility.Visible : Visibility.None) | 55 | .visibility(StringUtils.isNotEmpty(this.item.time) ? Visibility.Visible : Visibility.None) |
| 55 | 56 | ||
| 56 | Text('置顶') | 57 | Text('置顶') |
| 57 | - .fontSize('11fp') | 58 | + .fontSize('11vp') |
| 58 | .fontWeight(400) | 59 | .fontWeight(400) |
| 59 | .fontColor('#ED2800') | 60 | .fontColor('#ED2800') |
| 60 | .backgroundColor('#F1EFEB') | 61 | .backgroundColor('#F1EFEB') |
| @@ -71,9 +72,10 @@ export struct TabLiveItemComponent { | @@ -71,9 +72,10 @@ export struct TabLiveItemComponent { | ||
| 71 | } | 72 | } |
| 72 | 73 | ||
| 73 | Text(this.item.text) | 74 | Text(this.item.text) |
| 74 | - .fontSize('14fp') | 75 | + .fontSize('14vp') |
| 75 | .fontWeight(400) | 76 | .fontWeight(400) |
| 76 | .fontColor('#222222') | 77 | .fontColor('#222222') |
| 78 | + .lineHeight('20vp') | ||
| 77 | .margin({ | 79 | .margin({ |
| 78 | top: 6 | 80 | top: 6 |
| 79 | }) | 81 | }) |
-
Please register or login to post a comment