Showing
1 changed file
with
8 additions
and
0 deletions
| @@ -26,6 +26,8 @@ struct SearchCreatorPage { | @@ -26,6 +26,8 @@ struct SearchCreatorPage { | ||
| 26 | @State isLoading: boolean = false | 26 | @State isLoading: boolean = false |
| 27 | @State hasMore: boolean = true | 27 | @State hasMore: boolean = true |
| 28 | curPageNum: number = 1; | 28 | curPageNum: number = 1; |
| 29 | + @State topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 | ||
| 30 | + @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 | ||
| 29 | 31 | ||
| 30 | onPageShow() { | 32 | onPageShow() { |
| 31 | this.keyword = this.params?.pageID; | 33 | this.keyword = this.params?.pageID; |
| @@ -154,6 +156,7 @@ struct SearchCreatorPage { | @@ -154,6 +156,7 @@ struct SearchCreatorPage { | ||
| 154 | } | 156 | } |
| 155 | 157 | ||
| 156 | build() { | 158 | build() { |
| 159 | + Column(){ | ||
| 157 | Column() { | 160 | Column() { |
| 158 | CustomTitleUI({ titleName: "全部结果" }) | 161 | CustomTitleUI({ titleName: "全部结果" }) |
| 159 | Divider() | 162 | Divider() |
| @@ -200,5 +203,10 @@ struct SearchCreatorPage { | @@ -200,5 +203,10 @@ struct SearchCreatorPage { | ||
| 200 | } | 203 | } |
| 201 | .width('100%') | 204 | .width('100%') |
| 202 | .height('100%') | 205 | .height('100%') |
| 206 | + }.width("100%") | ||
| 207 | + .height("100%") | ||
| 208 | + .backgroundColor($r('app.color.color_transparent')) | ||
| 209 | + .padding({top:px2vp(this.topSafeHeight)}) | ||
| 210 | + | ||
| 203 | } | 211 | } |
| 204 | } | 212 | } |
-
Please register or login to post a comment