Showing
1 changed file
with
3 additions
and
4 deletions
| @@ -106,14 +106,14 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | @@ -106,14 +106,14 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | ||
| 106 | .aspectRatio(1.5) | 106 | .aspectRatio(1.5) |
| 107 | .width(this.compDTO.operDataList.length == 2 ? 210 : 150) | 107 | .width(this.compDTO.operDataList.length == 2 ? 210 : 150) |
| 108 | .objectFit(ImageFit.Contain) | 108 | .objectFit(ImageFit.Contain) |
| 109 | + .borderRadius(4) | ||
| 110 | + .border({width: 0.5, color: 0xf5f5f5}) | ||
| 109 | CardMediaInfo({ | 111 | CardMediaInfo({ |
| 110 | livePeopleNum:false, | 112 | livePeopleNum:false, |
| 111 | contentDTO: item | 113 | contentDTO: item |
| 112 | }) | 114 | }) |
| 113 | } | 115 | } |
| 114 | .align(Alignment.BottomEnd) | 116 | .align(Alignment.BottomEnd) |
| 115 | - .borderRadius(4) | ||
| 116 | - .border({width: 1, color: 0xf5f5f5}) | ||
| 117 | 117 | ||
| 118 | Text(item.newsTitle) | 118 | Text(item.newsTitle) |
| 119 | .fontSize($r("app.float.font_size_14")) | 119 | .fontSize($r("app.float.font_size_14")) |
| @@ -127,13 +127,12 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | @@ -127,13 +127,12 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | ||
| 127 | .lineHeight(19) | 127 | .lineHeight(19) |
| 128 | } | 128 | } |
| 129 | .height(this.compDTO.operDataList.length == 2 ? 190 : 148) | 129 | .height(this.compDTO.operDataList.length == 2 ? 190 : 148) |
| 130 | - .padding({ right: this.compDTO.operDataList.length == 2 ? 12 : 8 }) | 130 | + .padding({ right: this.compDTO.operDataList.length >= 3 ? 8 : 12, left: index == 0 ? 20: 0 }) |
| 131 | // .offset({x:16}) | 131 | // .offset({x:16}) |
| 132 | .onClick(() => { | 132 | .onClick(() => { |
| 133 | InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName) | 133 | InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName) |
| 134 | ProcessUtils.processPage(item) | 134 | ProcessUtils.processPage(item) |
| 135 | }) | 135 | }) |
| 136 | - .padding({ right: 16, left: index == 0 ? 20: 0 }) | ||
| 137 | }) | 136 | }) |
| 138 | } | 137 | } |
| 139 | 138 |
-
Please register or login to post a comment