Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yangchenggong1_wd
2024-09-20 16:00:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dc8e2c4620920b369a9f143fe2e8c8bff07dca3c
dc8e2c46
1 parent
d25d91c2
fix |> 20506 人民号频道,切换推荐和关注tab,选中tab标题不应上抬。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
View file @
dc8e2c4
...
...
@@ -260,7 +260,7 @@ export struct TopNavigationComponentNew {
buildTabBarItems(mourningCheckFn: (channelId: string) => boolean) {
ForEach(this.topNavList, (navItem: TopNavDTO, index: number) => {
ListItem() {
this.tabBarBuilder(navItem, index)
this.tabBarBuilder(navItem, index
,true
)
}
.grayscale(mourningCheckFn(`${navItem.channelId}`) ? 1 : 0)
});
...
...
@@ -374,7 +374,7 @@ export struct TopNavigationComponentNew {
* @param index
*/
@Builder
tabBarBuilder(item: TopNavDTO, index: number) {
tabBarBuilder(item: TopNavDTO, index: number
,isRmh:boolean = false
) {
Column() {
if (item.iconUrl && item.iconCUrl) {
...
...
@@ -398,11 +398,17 @@ export struct TopNavigationComponentNew {
})
.maxLines(this.MAX_LINE)
.id(index.toString())
if
(this.currentTopNavSelectedIndex === index)
{
if
(isRmh)
{
Image($r('app.media.icon_channel_active'))//.colorFilter(ColorUtils.getDrawingColorFilter(this.getBothColor("")))
.width(20)
.height(3)
.visibility(this.currentTopNavSelectedIndex === index?Visibility.Visible:Visibility.Hidden)
}else{
if (this.currentTopNavSelectedIndex === index) {
Image($r('app.media.icon_channel_active'))//.colorFilter(ColorUtils.getDrawingColorFilter(this.getBothColor("")))
.width(20)
.height(3)
}
}
}
...
...
Please
register
or
login
to post a comment