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
陈剑华
2024-09-21 14:29:47 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
7bed2852d047def33f6f472fd073512ea74418ea
7bed2852
2 parents
ea813ea1
657d3150
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MultiPictureDetailItemComponent.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MultiPictureListPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/MultiPictureDetailItemComponent.ets
View file @
7bed285
...
...
@@ -229,6 +229,11 @@ export struct MultiPictureDetailItemComponent {
.gesture(
GestureGroup(
GestureMode.Exclusive,
// 单击返回上一层
TapGesture({ count: 1 })
.onAction(() => {
router.back()
}),
// TODO:知识点:双击切换图片大小
TapGesture({ count: 2 })
.onAction(() => {
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/MultiPictureListPage.ets
View file @
7bed285
...
...
@@ -26,9 +26,21 @@ export struct MultiPictureListPage {
@Provide duration: number = 0
@State noAnimation: boolean = true
// pageTransition() {
// // PageTransitionEnter({ duration: this.noAnimation ? 0 : 300 })
// PageTransitionExit({ duration: !this.noAnimation ? 0 : 300 })
// }
pageTransition() {
// PageTransitionEnter({ duration: this.noAnimation ? 0 : 300 })
PageTransitionExit({ duration: !this.noAnimation ? 0 : 300 })
// 为目标页面时,进入:从右边侧滑入,退出:是右侧划出;跳转别的页面:左侧划出,返回:左侧划入。
PageTransitionEnter({ type: RouteType.Push, duration: 300 })
.slide(SlideEffect.Right)
PageTransitionEnter({ type: RouteType.Pop, duration: 300 })
.slide(SlideEffect.Left)
PageTransitionExit({ type: RouteType.Push, duration: 300 })
.slide(SlideEffect.Left)
PageTransitionExit({ type: RouteType.Pop, duration: 300 })
.slide(SlideEffect.Right)
}
aboutToAppear(): void {
...
...
Please
register
or
login
to post a comment