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-06-21 14:34:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bd8c782fa55abf5992a5919ab1ba7dca403fd9af
bd8c782f
1 parent
1836595e
修改build_version;删除无用代码
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
sight_harmony/commons/wdKit/build-profile.json5
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
sight_harmony/commons/wdKit/build-profile.json5
View file @
bd8c782
...
...
@@ -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 @
bd8c782
...
...
@@ -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)
...
...
Please
register
or
login
to post a comment