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 13:49:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
40bb897b3bc525cc25786c2d6e05182a1deeb09a
40bb897b
1 parent
9b6efbcf
fix: 人民号>动态图文详情页,点击图片查看大图,点击图片应返回动态详情页
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 @
40bb897
...
...
@@ -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 @
40bb897
...
...
@@ -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