Showing
2 changed files
with
7 additions
and
6 deletions
| @@ -299,12 +299,13 @@ export struct TopNavigationComponent { | @@ -299,12 +299,13 @@ export struct TopNavigationComponent { | ||
| 299 | .fontColor(this.getFontColor(item, index)) | 299 | .fontColor(this.getFontColor(item, index)) |
| 300 | .padding({ top: $r('app.float.top_tab_item_padding_top') }) | 300 | .padding({ top: $r('app.float.top_tab_item_padding_top') }) |
| 301 | .maxLines(this.MAX_LINE) | 301 | .maxLines(this.MAX_LINE) |
| 302 | - Divider() | ||
| 303 | - .width(16) | ||
| 304 | - .strokeWidth(2)// 分割线粗细度。 | ||
| 305 | - .padding({ top: 2 }) | ||
| 306 | - .color(Color.Red) | ||
| 307 | - .opacity(this.currentTopNavSelectedIndex === index ? 1 : 0) | 302 | + if (this.currentTopNavSelectedIndex === index) { |
| 303 | + Row() | ||
| 304 | + .width(20) | ||
| 305 | + .height(3) | ||
| 306 | + .backgroundImage($r('app.media.icon_channel_active'), ImageRepeat.NoRepeat) | ||
| 307 | + } | ||
| 308 | + | ||
| 308 | } | 309 | } |
| 309 | .hoverEffect(HoverEffect.Highlight) | 310 | .hoverEffect(HoverEffect.Highlight) |
| 310 | .constraintSize({ | 311 | .constraintSize({ |
-
Please register or login to post a comment