Showing
1 changed file
with
5 additions
and
1 deletions
| @@ -123,6 +123,7 @@ export struct LiveHorizontalCardComponent { | @@ -123,6 +123,7 @@ export struct LiveHorizontalCardComponent { | ||
| 123 | .margin({ top: 8, bottom: 8 }) | 123 | .margin({ top: 8, bottom: 8 }) |
| 124 | .width(CommonConstants.FULL_WIDTH) | 124 | .width(CommonConstants.FULL_WIDTH) |
| 125 | 125 | ||
| 126 | + Row(){ | ||
| 126 | // 多个 | 127 | // 多个 |
| 127 | if (this.compDTO.operDataList.length >= 2) { | 128 | if (this.compDTO.operDataList.length >= 2) { |
| 128 | Scroll(this.scroller) { | 129 | Scroll(this.scroller) { |
| @@ -209,10 +210,13 @@ export struct LiveHorizontalCardComponent { | @@ -209,10 +210,13 @@ export struct LiveHorizontalCardComponent { | ||
| 209 | .width(CommonConstants.FULL_WIDTH) | 210 | .width(CommonConstants.FULL_WIDTH) |
| 210 | .height(this.compDTO.operDataList.length == 2 ? 180 : 136) | 211 | .height(this.compDTO.operDataList.length == 2 ? 180 : 136) |
| 211 | } else if (this.compDTO.operDataList.length) { | 212 | } else if (this.compDTO.operDataList.length) { |
| 212 | - // 一个 | 213 | + Row(){ |
| 213 | LiveHorizontalCardForOneComponent({ contentDTO: this.compDTO.operDataList[0] }) | 214 | LiveHorizontalCardForOneComponent({ contentDTO: this.compDTO.operDataList[0] }) |
| 214 | } | 215 | } |
| 215 | } | 216 | } |
| 217 | + }.padding({left:10}) | ||
| 218 | + | ||
| 219 | + } | ||
| 216 | // .width(CommonConstants.FULL_WIDTH) | 220 | // .width(CommonConstants.FULL_WIDTH) |
| 217 | .padding({ | 221 | .padding({ |
| 218 | left: $r('app.float.card_comp_pagePadding_lf'), | 222 | left: $r('app.float.card_comp_pagePadding_lf'), |
-
Please register or login to post a comment