Showing
2 changed files
with
6 additions
and
5 deletions
| @@ -211,12 +211,13 @@ export struct MorningEveningPaperComponent { | @@ -211,12 +211,13 @@ export struct MorningEveningPaperComponent { | ||
| 211 | } | 211 | } |
| 212 | .height('100%') | 212 | .height('100%') |
| 213 | 213 | ||
| 214 | - PaperTitleComponent().margin({ | ||
| 215 | - top: this.topSafeHeight | ||
| 216 | - }) | 214 | + PaperTitleComponent() |
| 217 | } | 215 | } |
| 218 | .width('100%') | 216 | .width('100%') |
| 219 | .height('100%') | 217 | .height('100%') |
| 218 | + .padding({ | ||
| 219 | + top: this.topSafeHeight | ||
| 220 | + }) | ||
| 220 | // .backgroundColor(Color.Black) | 221 | // .backgroundColor(Color.Black) |
| 221 | // .backgroundColor(this.pageInfoBean?.backgroundColor ?? Color.Black) | 222 | // .backgroundColor(this.pageInfoBean?.backgroundColor ?? Color.Black) |
| 222 | .backgroundColor(this.mixedBgColor ?? Color.Black) | 223 | .backgroundColor(this.mixedBgColor ?? Color.Black) |
| @@ -17,7 +17,7 @@ struct MorningEveningPaperPage { | @@ -17,7 +17,7 @@ struct MorningEveningPaperPage { | ||
| 17 | 17 | ||
| 18 | pageTransition() { | 18 | pageTransition() { |
| 19 | // 定义页面进入时的效果,从底侧滑入 | 19 | // 定义页面进入时的效果,从底侧滑入 |
| 20 | - PageTransitionEnter({ type: RouteType.None, duration: 300 }) | 20 | + PageTransitionEnter({ type: RouteType.Push, duration: 300 }) |
| 21 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { | 21 | .slide(SlideEffect.Bottom).onEnter((type: RouteType, progress: number) => { |
| 22 | if (progress >= 0.99) { | 22 | if (progress >= 0.99) { |
| 23 | WindowModel.shared.setWindowLayoutFullScreen(true) | 23 | WindowModel.shared.setWindowLayoutFullScreen(true) |
| @@ -25,7 +25,7 @@ struct MorningEveningPaperPage { | @@ -25,7 +25,7 @@ struct MorningEveningPaperPage { | ||
| 25 | } | 25 | } |
| 26 | }) | 26 | }) |
| 27 | // 定义页面退出时的效果,向底侧滑出 | 27 | // 定义页面退出时的效果,向底侧滑出 |
| 28 | - PageTransitionExit({ type: RouteType.None, duration: 300 }) | 28 | + PageTransitionExit({ type: RouteType.Pop, duration: 300 }) |
| 29 | .slide(SlideEffect.Bottom) | 29 | .slide(SlideEffect.Bottom) |
| 30 | } | 30 | } |
| 31 | 31 |
-
Please register or login to post a comment