Showing
2 changed files
with
3 additions
and
4 deletions
| @@ -98,11 +98,10 @@ export struct TabComponent { | @@ -98,11 +98,10 @@ export struct TabComponent { | ||
| 98 | .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) | 98 | .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) |
| 99 | .fontSize('18vp') | 99 | .fontSize('18vp') |
| 100 | .fontWeight(this.currentIndex === index ? 600 : 400) | 100 | .fontWeight(this.currentIndex === index ? 600 : 400) |
| 101 | - Divider() | ||
| 102 | - .strokeWidth(2) | 101 | + Image($r('app.media.icon_tab_indictor_line')) |
| 103 | .margin({ top: 6 }) | 102 | .margin({ top: 6 }) |
| 104 | - .width(15) | ||
| 105 | - .color('#CB0000') | 103 | + .width(18) |
| 104 | + .height(2) | ||
| 106 | .visibility(this.currentIndex === index ? Visibility.Visible : Visibility.Hidden) | 105 | .visibility(this.currentIndex === index ? Visibility.Visible : Visibility.Hidden) |
| 107 | }.justifyContent(FlexAlign.Center) | 106 | }.justifyContent(FlexAlign.Center) |
| 108 | .constraintSize({ minWidth: 35 }) | 107 | .constraintSize({ minWidth: 35 }) |
-
Please register or login to post a comment