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
wangliang_wd
2024-09-25 17:23:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
96643e6a9c0e6e973d4004f18e44d7578c66a9a0
96643e6a
1 parent
2521a64e
feat:优化用户名显示问题,滑动tab展示问题
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeListComponent.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/pages/OtherNormalUserHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeListComponent.ets
View file @
96643e6
...
...
@@ -96,8 +96,8 @@ export struct PeopleShipHomeListComponent {
startMargin: 0,
endMargin: 0
})
.onChange((index: number) => {
this.currentIndex = index
.onAnimationStart((index: number,targetindex:number) => {
this.currentIndex = targetindex
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
View file @
96643e6
...
...
@@ -272,9 +272,9 @@ struct MineHomePage {
}
.backgroundColor($r('app.color.white'))
.animationDuration(0)
.onChange((index: number) => {
this.currentIndex = index
trackTabFirstClick(index === 0 ? "评论":"关注")
.onAnimationStart((index: number,targetindex:number) => {
this.currentIndex = targetindex
trackTabFirstClick(targetindex === 0 ? "评论":"关注")
})
.vertical(false)
.barHeight(44)
...
...
@@ -412,11 +412,13 @@ struct MineHomePage {
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
.lineHeight(16)
.textOverflow({overflow:TextOverflow.Ellipsis})
.alignRules({
center: { anchor: "__container__", align: VerticalAlign.Center },
left: { anchor: "head_icon", align: HorizontalAlign.End }
left: { anchor: "head_icon", align: HorizontalAlign.End },
right: { anchor: "rightText", align: HorizontalAlign.Start },
})
.margin({ left: 6 })
.margin({ left: 6
,right:6
})
Text("编辑资料")
.height(22)
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/OtherNormalUserHomePage.ets
View file @
96643e6
...
...
@@ -221,9 +221,9 @@ struct OtherNormalUserHomePage {
}
.backgroundColor($r('app.color.white'))
.animationDuration(0)
.onChange((index: number) => {
this.currentIndex = index
trackTabFirstClick(index === 0 ? "评论":"关注")
.onAnimationStart((index: number,targetindex:number) => {
this.currentIndex = targetindex
trackTabFirstClick(targetindex === 0 ? "评论":"关注")
})
.vertical(false)
.barHeight('77lpx')
...
...
@@ -341,11 +341,13 @@ struct OtherNormalUserHomePage {
.fontWeight('400lpx')
.fontColor($r('app.color.color_222222'))
.lineHeight('42lpx')
.textOverflow({overflow:TextOverflow.Ellipsis})
.alignRules({
center: { anchor: "__container__", align: VerticalAlign.Center },
left: { anchor: "head_icon", align: HorizontalAlign.End }
left: { anchor: "head_icon", align: HorizontalAlign.End },
right: { anchor: "__container__", align: HorizontalAlign.End },
})
.margin({ left:
'12lpx'
})
.margin({ left:
6,right:6
})
}
.visibility(this.tileOpacity > 0 ? 0 : 1)
.height('84lpx')
...
...
Please
register
or
login
to post a comment