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
chenjun
2024-08-12 15:40:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
41feb6edada6d105775709909348e8af6f2b6dc7
41feb6ed
1 parent
db81744a
18497图集详情页,图片上滑或下滑,返回上一页面,页面退出效果明显,参考视频中安卓退出效果
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
sight_harmony/features/wdComponent/src/main/ets/pages/MultiPictureListPage.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MultiPictureListPage.ets
View file @
41feb6e
...
...
@@ -24,6 +24,13 @@ export struct MultiPictureListPage {
@Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
// @Provide bgc: Color = Color.White;
@Provide duration: number = 0
@State noAnimation: boolean = true
pageTransition() {
// PageTransitionEnter({ duration: this.noAnimation ? 0 : 300 })
PageTransitionExit({ duration: !this.noAnimation ? 0 : 300 })
}
aboutToAppear(): void {
//获取宽高尺寸
...
...
@@ -65,6 +72,7 @@ export struct MultiPictureListPage {
})
.onClick(() => {
this.onBack();
this.noAnimation = false
router.back();
})
.id("backImg")
...
...
Please
register
or
login
to post a comment