yangchenggong1_wd

fix:适配全面屏

... ... @@ -26,6 +26,8 @@ struct SearchCreatorPage {
@State isLoading: boolean = false
@State hasMore: boolean = true
curPageNum: number = 1;
@State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
@State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
onPageShow() {
this.keyword = this.params?.pageID;
... ... @@ -154,6 +156,7 @@ struct SearchCreatorPage {
}
build() {
Column(){
Column() {
CustomTitleUI({ titleName: "全部结果" })
Divider()
... ... @@ -200,5 +203,10 @@ struct SearchCreatorPage {
}
.width('100%')
.height('100%')
}.width("100%")
.height("100%")
.backgroundColor($r('app.color.color_transparent'))
.padding({top:px2vp(this.topSafeHeight)})
}
}
\ No newline at end of file
... ...