From 3abc6f78a2aecab2352959ef0be57ae4306ae196 Mon Sep 17 00:00:00 2001 From: liugang9704 <2745340733@qq.com> Date: Mon, 21 Jul 2025 11:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=8C=E6=BA=90=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/ImageSwitch.ets | 4 ++++ entry/src/main/ets/pages/StackSwitch.ets | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/ImageSwitch.ets b/entry/src/main/ets/pages/ImageSwitch.ets index f521646..b7bb155 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 0ace4d7..afa0e69 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) -- Gitee