mirror of
https://gitee.com/openharmony/applications_screenlock
synced 2025-02-21 15:00:59 +00:00
support show/hide Wallpaper component when window show/hide for Phone
Signed-off-by: yangpeng85 <yangpeng85@huawei.com>
This commit is contained in:
parent
b34b7c47dc
commit
409058131b
@ -32,6 +32,7 @@ export default struct SlideScreenlock {
|
||||
@StorageLink('batteryCharging') @Watch('onCharging') batteryCharging: boolean = false
|
||||
@Prop @Watch("onStatusChange") pageStatus: number
|
||||
@StorageLink('deviceStatus') @Watch('onDeviceStatusChange') deviceStatus: string = ""
|
||||
@StorageLink('isWallpaperShow') isWallpaperShow: boolean = true
|
||||
private mHeightPx : number = 48
|
||||
aboutToAppear() {
|
||||
Log.showInfo(TAG, `aboutToAppear`)
|
||||
@ -53,7 +54,9 @@ export default struct SlideScreenlock {
|
||||
build() {
|
||||
Stack({ alignContent: Alignment.Bottom }) {
|
||||
Column() {
|
||||
Wallpaper()
|
||||
if (this.isWallpaperShow === true) {
|
||||
Wallpaper()
|
||||
}
|
||||
}
|
||||
.width(Constants.FULL_CONTAINER_WIDTH)
|
||||
.height(Constants.FULL_CONTAINER_HEIGHT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user