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
zhangbo1_wd
2024-05-10 22:46:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2634a814f4ea9055700504e8b457fe436550ce54
2634a814
1 parent
4bfe1f23
添加顶导单击刷新
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponent.ets
View file @
2634a81
...
...
@@ -400,7 +400,15 @@ export struct TopNavigationComponent {
})
.id(`col_tabBar${index}`)
.margin({ right: this.myChannelList.length === index + 1 ? 36 : 0 })
.onClick(() => {
Logger.debug(TAG, `onClick, index: ${index}`);
if (this.currentTopNavSelectedIndex === index) {
// 当前tab,单击事件
this.doAutoRefresh()
} else {
this.tabsController.changeIndex(index)
}
})
}
aboutToAppear() {
...
...
@@ -425,6 +433,11 @@ export struct TopNavigationComponent {
this.autoRefresh2Page++
}
private doAutoRefresh() {
// 通知page刷新
this.autoRefresh2Page++
}
/**
* 频道id变化,即指定频道跳转场景
*/
...
...
Please
register
or
login
to post a comment