Showing
1 changed file
with
2 additions
and
0 deletions
| @@ -31,6 +31,7 @@ export struct SearchHotsComponent{ | @@ -31,6 +31,7 @@ export struct SearchHotsComponent{ | ||
| 31 | 31 | ||
| 32 | build(){ | 32 | build(){ |
| 33 | Column(){ | 33 | Column(){ |
| 34 | + if(this.searchHotsData.length>0){ | ||
| 34 | Row() { | 35 | Row() { |
| 35 | Image($r('app.media.search_hot_icon')) | 36 | Image($r('app.media.search_hot_icon')) |
| 36 | .width('46lpx') | 37 | .width('46lpx') |
| @@ -49,6 +50,7 @@ export struct SearchHotsComponent{ | @@ -49,6 +50,7 @@ export struct SearchHotsComponent{ | ||
| 49 | } | 50 | } |
| 50 | .width('100%') | 51 | .width('100%') |
| 51 | .margin({bottom:"15lpx"}) | 52 | .margin({bottom:"15lpx"}) |
| 53 | + } | ||
| 52 | 54 | ||
| 53 | List(){ | 55 | List(){ |
| 54 | ForEach(this.searchHotsData,(item:SearchHotContentItem,index:number)=>{ | 56 | ForEach(this.searchHotsData,(item:SearchHotContentItem,index:number)=>{ |
-
Please register or login to post a comment