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
liyubing
2024-06-21 15:26:37 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
99a936df8e5a7d0ae12bd419956834d507de4316
99a936df
2 parents
a7ce06a9
bd8c782f
Merge remote-tracking branch 'origin/main'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
sight_harmony/commons/wdKit/build-profile.json5
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
sight_harmony/products/phone/src/main/ets/pages/view/BottomNavigationComponent.ets
sight_harmony/commons/wdKit/build-profile.json5
View file @
99a936d
...
...
@@ -3,7 +3,7 @@
"buildOption"
:
{
"arkOptions"
:
{
"buildProfileFields"
:
{
"BUILD_
TIME
"
:
""
"BUILD_
VERSION
"
:
""
}
}
},
...
...
@@ -20,7 +20,7 @@
}
},
"buildProfileFields"
:
{
"BUILD_
TIME
"
:
""
"BUILD_
VERSION
"
:
""
}
}
},
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
View file @
99a936d
...
...
@@ -60,8 +60,8 @@ export struct TopNavigationComponentNew {
// 传递给page的自动刷新通知
@State autoRefresh2Page: number = 0
@State animationDuration: number = 0
@State indicatorLeftMargin: number = 0
@State indicatorWidth: number = 0
// @State indicatorLeftMargin: number = 0
// @State indicatorWidth: number = 0
@State isClickMorningEveningPaper: boolean = false
// 顶部导航栏是否有临时跳转频道数据不
@State haveTempTabData: boolean = false
...
...
@@ -304,17 +304,17 @@ export struct TopNavigationComponentNew {
.padding({ top: $r('app.float.top_tab_item_padding_top'), bottom: $r('app.float.top_tab_item_padding_bottom') })
.maxLines(this.MAX_LINE)
.id(index.toString())
.onAreaChange((oldValue: Area, newValue: Area) => {
if (this.currentTopNavSelectedIndex === index &&
(this.indicatorLeftMargin === 0 || this.indicatorWidth === 0)) {
if (newValue.position.x != undefined) {
let positionX = Number.parseFloat(newValue.position.x.toString())
this.indicatorLeftMargin = Number.isNaN(positionX) ? 0 : positionX
}
let width = Number.parseFloat(newValue.width.toString())
this.indicatorWidth = Number.isNaN(width) ? 0 : width
}
})
// .onAreaChange((oldValue: Area, newValue: Area) => {
// if (this.currentTopNavSelectedIndex === index &&
// (this.indicatorLeftMargin === 0 || this.indicatorWidth === 0)) {
// if (newValue.position.x != undefined) {
// let positionX = Number.parseFloat(newValue.position.x.toString())
// this.indicatorLeftMargin = Number.isNaN(positionX) ? 0 : positionX
// }
// let width = Number.parseFloat(newValue.width.toString())
// this.indicatorWidth = Number.isNaN(width) ? 0 : width
// }
// })
if (this.currentTopNavSelectedIndex === index) {
Row()
.width(20)
...
...
sight_harmony/products/phone/src/main/ets/pages/view/BottomNavigationComponent.ets
View file @
99a936d
...
...
@@ -171,7 +171,10 @@ export struct BottomNavigationComponent {
// 是否开启一级内存缓存
isCacheable: true,
// 磁盘缓存
strategy: new ALL()
strategy: new ALL(),
gif: {
playTimes: 1
}
};
return imageKnifeOption
}
...
...
Please
register
or
login
to post a comment