diff --git a/entry/src/main/ets/pages/ImageSwitch.ets b/entry/src/main/ets/pages/ImageSwitch.ets index f52164682f521a0745e1881de42cb8ec70119ad3..b7bb155f4e20b8c7562f9366c5e9edb04d774151 100644 --- a/entry/src/main/ets/pages/ImageSwitch.ets +++ b/entry/src/main/ets/pages/ImageSwitch.ets @@ -33,6 +33,7 @@ export struct ImageSwitch { @Consume('NavPathStack') pageStack: NavPathStack; scroller: Scroller = new Scroller(); + // [Start aboutToAppear] aboutToAppear(): void { this.isFoldable = display.isFoldable(); // Get the foldable screen status @@ -55,13 +56,16 @@ export struct ImageSwitch { this.progressData = list; this.data = new DataSource(list); + // [StartExclude aboutToAppear] let windowClass: window.Window | undefined = AppStorage.get('windowClass'); let sysBarProps: window.SystemBarProperties = { statusBarColor: '#000000', statusBarContentColor: '#ffffff' }; windowClass?.setWindowSystemBarProperties(sysBarProps); + // [EndExclude aboutToAppear] } + // [Start aboutToAppear] aboutToDisappear(): void { let windowClass: window.Window | undefined = AppStorage.get('windowClass'); diff --git a/entry/src/main/ets/pages/StackSwitch.ets b/entry/src/main/ets/pages/StackSwitch.ets index 0ace4d7228d6f3864032f6d391014834d18fd236..afa0e6963fed9d0111c4bc88987e7ef970ecb8fc 100644 --- a/entry/src/main/ets/pages/StackSwitch.ets +++ b/entry/src/main/ets/pages/StackSwitch.ets @@ -173,6 +173,8 @@ struct SwiperExample { .onAppear(() => { // It is called only once after mounting this.isAppear = true; }) + // [End SwiperCarouselOverlay] + // [Start gesture] .gesture( PanGesture(this.panOption) .onActionStart((event: GestureEvent) => { @@ -238,11 +240,10 @@ struct SwiperExample { }) }) ) + // [End gesture] .backgroundColor(Color.Black) .width('100%') .height('100%') - - // [End SwiperCarouselOverlay] } .width('100%') .height(300)