Showing
1 changed file
with
10 additions
and
0 deletions
| @@ -113,6 +113,16 @@ export struct MultiPictureListPage { | @@ -113,6 +113,16 @@ export struct MultiPictureListPage { | ||
| 113 | this.swiperIndex = targetIndex | 113 | this.swiperIndex = targetIndex |
| 114 | this.currentUrl = this.photoList[targetIndex]?.picPath | 114 | this.currentUrl = this.photoList[targetIndex]?.picPath |
| 115 | }) | 115 | }) |
| 116 | + .gesture( | ||
| 117 | + GestureGroup( | ||
| 118 | + GestureMode.Exclusive, | ||
| 119 | + // 单击返回上一层 | ||
| 120 | + TapGesture({ count: 1 }) | ||
| 121 | + .onAction(() => { | ||
| 122 | + router.back() | ||
| 123 | + }) | ||
| 124 | + ) | ||
| 125 | + ) | ||
| 116 | 126 | ||
| 117 | Flex({ | 127 | Flex({ |
| 118 | direction: FlexDirection.Row, | 128 | direction: FlexDirection.Row, |
-
Please register or login to post a comment