Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-10-29 11:23:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
47f85f464dc7da025b30b9b964644c2648e95757
47f85f46
1 parent
0c15cdd8
feat:优化我的收藏,选择状态UI问题
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/MyCollectionListPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/CustomBottomFuctionUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/CustomSelectUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
View file @
47f85f4
...
...
@@ -337,10 +337,10 @@ struct createImg {
.backgroundColor(0xf5f5f5)
// .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305)
.width('100%')
.height(this.getPicHeight(item.weight,item.height))
// .constraintSize({
// maxHeight: this.getPicHeight(item.weight,item.height)
// })
// .height(this.getPicHeight(item.weight,item.height))
.constraintSize({
maxHeight: this.getPicHeight(item.weight,item.height)
})
.autoResize(true)
.borderRadius(this.caclImageRadius(index))
.borderStyle(BorderStyle.Solid)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/MyCollectionListPage.ets
View file @
47f85f4
...
...
@@ -191,7 +191,7 @@ struct MyCollectionListPage {
selectCallback:((item)=>{
this.addCompDTO(compDTO.isSelect,compDTO)
})
})
.margin({right: 16})
})
}
BigPicCardComponent({compDTO:compDTO,contentDTO:compDTO.operDataList[0],pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect})
}.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/CustomBottomFuctionUI.ets
View file @
47f85f4
...
...
@@ -14,7 +14,7 @@ export struct CustomBottomFuctionUI {
.width(20)
.height(20)
// .margin({right:'31lpx' })
.margin({right:
31
})
.margin({right:
16
})
Text(this.isAllSelect?'取消全选':'全选')
.fontColor($r('app.color.color_222222'))
...
...
@@ -22,7 +22,7 @@ export struct CustomBottomFuctionUI {
}
.id("allSelect_Button")
// .margin({left:'31lpx'})
.margin({left:
31
})
.margin({left:
16
})
.alignRules({
center: {anchor: "__container__", align: VerticalAlign.Center},
left: {anchor: "__container__", align: HorizontalAlign.Start}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/CustomSelectUI.ets
View file @
47f85f4
...
...
@@ -8,12 +8,14 @@ export struct CustomSelectUI {
build() {
Button(){
Image(this.data.isSelect?$r("app.media.MyCollection_selected_icon"):$r("app.media.MyCollection_unselected_icon"))
.width(20)
.height(20)
}.onClick(()=>{
this.data.isSelect = this.data.isSelect?false:true
})
.backgroundColor(Color.White)
.type(ButtonType.Normal)
.width(
2
0)
.width(
4
0)
.height(20)
}
...
...
Please
register
or
login
to post a comment