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
chenqs
2024-08-07 14:46:03 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
96c2d1091c8d370789dcf322d150e4edbad87a1b
96c2d109
1 parent
f11980c7
fix |> 修复tabbar来回多长切换出现多个选中的场景
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
sight_harmony/products/phone/src/main/ets/pages/view/BottomNavigationComponent.ets
sight_harmony/products/phone/src/main/ets/pages/view/BottomNavigationComponent.ets
View file @
96c2d10
...
...
@@ -96,7 +96,7 @@ export struct BottomNavigationComponent {
navItem: navItem
})
} else {
// 其它带顶
到
的页面,如 新闻、人民号、服务
// 其它带顶
导
的页面,如 新闻、人民号、服务
TopNavigationComponentNew({
topNavList: navItem.topNavChannelList.filter(item => item.channelId != 2073),
_currentNavIndex: $currentNavIndex,
...
...
@@ -193,14 +193,17 @@ export struct BottomNavigationComponent {
}
getBottomImageKnifeOption(navItem: BottomNavDTO, isSelect: boolean): ImageKnifeOption {
let defaultIcon = this.getBottomLocalIcon(navItem, isSelect)
let url = this.getBottomIcon(navItem, isSelect)
// Logger.info(TAG, `onChange111, 本地的地址: ${defaultIcon}`);
let imageKnifeOption: ImageKnifeOption = {
loadSrc: url,
// 占位图使用本地资源
placeholderSrc: defaultIcon,
// 失败占位图使用本地资源
errorholderSrc: defaultIcon,
//
errorholderSrc: defaultIcon,
// 是否开启一级内存缓存
isCacheable: true,
// 磁盘缓存
...
...
Please
register
or
login
to post a comment