Showing
4 changed files
with
10 additions
and
8 deletions
| @@ -337,10 +337,10 @@ struct createImg { | @@ -337,10 +337,10 @@ struct createImg { | ||
| 337 | .backgroundColor(0xf5f5f5) | 337 | .backgroundColor(0xf5f5f5) |
| 338 | // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305) | 338 | // .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305) |
| 339 | .width('100%') | 339 | .width('100%') |
| 340 | - .height(this.getPicHeight(item.weight,item.height)) | ||
| 341 | - // .constraintSize({ | ||
| 342 | - // maxHeight: this.getPicHeight(item.weight,item.height) | ||
| 343 | - // }) | 340 | + // .height(this.getPicHeight(item.weight,item.height)) |
| 341 | + .constraintSize({ | ||
| 342 | + maxHeight: this.getPicHeight(item.weight,item.height) | ||
| 343 | + }) | ||
| 344 | .autoResize(true) | 344 | .autoResize(true) |
| 345 | .borderRadius(this.caclImageRadius(index)) | 345 | .borderRadius(this.caclImageRadius(index)) |
| 346 | .borderStyle(BorderStyle.Solid) | 346 | .borderStyle(BorderStyle.Solid) |
| @@ -191,7 +191,7 @@ struct MyCollectionListPage { | @@ -191,7 +191,7 @@ struct MyCollectionListPage { | ||
| 191 | selectCallback:((item)=>{ | 191 | selectCallback:((item)=>{ |
| 192 | this.addCompDTO(compDTO.isSelect,compDTO) | 192 | this.addCompDTO(compDTO.isSelect,compDTO) |
| 193 | }) | 193 | }) |
| 194 | - }).margin({right: 16}) | 194 | + }) |
| 195 | } | 195 | } |
| 196 | BigPicCardComponent({compDTO:compDTO,contentDTO:compDTO.operDataList[0],pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect}) | 196 | BigPicCardComponent({compDTO:compDTO,contentDTO:compDTO.operDataList[0],pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect}) |
| 197 | }.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { | 197 | }.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { |
| @@ -14,7 +14,7 @@ export struct CustomBottomFuctionUI { | @@ -14,7 +14,7 @@ export struct CustomBottomFuctionUI { | ||
| 14 | .width(20) | 14 | .width(20) |
| 15 | .height(20) | 15 | .height(20) |
| 16 | // .margin({right:'31lpx' }) | 16 | // .margin({right:'31lpx' }) |
| 17 | - .margin({right: 31 }) | 17 | + .margin({right: 16 }) |
| 18 | 18 | ||
| 19 | Text(this.isAllSelect?'取消全选':'全选') | 19 | Text(this.isAllSelect?'取消全选':'全选') |
| 20 | .fontColor($r('app.color.color_222222')) | 20 | .fontColor($r('app.color.color_222222')) |
| @@ -22,7 +22,7 @@ export struct CustomBottomFuctionUI { | @@ -22,7 +22,7 @@ export struct CustomBottomFuctionUI { | ||
| 22 | } | 22 | } |
| 23 | .id("allSelect_Button") | 23 | .id("allSelect_Button") |
| 24 | // .margin({left:'31lpx'}) | 24 | // .margin({left:'31lpx'}) |
| 25 | - .margin({left: 31}) | 25 | + .margin({left: 16}) |
| 26 | .alignRules({ | 26 | .alignRules({ |
| 27 | center: {anchor: "__container__", align: VerticalAlign.Center}, | 27 | center: {anchor: "__container__", align: VerticalAlign.Center}, |
| 28 | left: {anchor: "__container__", align: HorizontalAlign.Start} | 28 | left: {anchor: "__container__", align: HorizontalAlign.Start} |
| @@ -8,12 +8,14 @@ export struct CustomSelectUI { | @@ -8,12 +8,14 @@ export struct CustomSelectUI { | ||
| 8 | build() { | 8 | build() { |
| 9 | Button(){ | 9 | Button(){ |
| 10 | Image(this.data.isSelect?$r("app.media.MyCollection_selected_icon"):$r("app.media.MyCollection_unselected_icon")) | 10 | Image(this.data.isSelect?$r("app.media.MyCollection_selected_icon"):$r("app.media.MyCollection_unselected_icon")) |
| 11 | + .width(20) | ||
| 12 | + .height(20) | ||
| 11 | }.onClick(()=>{ | 13 | }.onClick(()=>{ |
| 12 | this.data.isSelect = this.data.isSelect?false:true | 14 | this.data.isSelect = this.data.isSelect?false:true |
| 13 | }) | 15 | }) |
| 14 | .backgroundColor(Color.White) | 16 | .backgroundColor(Color.White) |
| 15 | .type(ButtonType.Normal) | 17 | .type(ButtonType.Normal) |
| 16 | - .width(20) | 18 | + .width(40) |
| 17 | .height(20) | 19 | .height(20) |
| 18 | } | 20 | } |
| 19 | 21 |
-
Please register or login to post a comment