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
陈剑华
2024-09-03 13:44:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0caa713b0bab63b57a74893a3abc3f74963b0e3a
0caa713b
1 parent
dcf80f5d
fix: 横划卡(16:9或3:2),左右横滑时,应从手机边缘消失
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/HorizontalStrokeCardThreeTwoRadioForMoreComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/HorizontalStrokeCardThreeTwoRadioForMoreComponent.ets
View file @
0caa713
...
...
@@ -72,6 +72,9 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
.fontColor($r("app.color.color_222222"))
.fontWeight(600)
}
.padding({
left: this.compDTO.operDataList.length >= 2 ? 20 : 0
})
Row() {
Text("更多")
...
...
@@ -129,6 +132,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName)
ProcessUtils.processPage(item)
})
.padding({ right: 16, left: index == 0 ? 20: 0 })
})
}
...
...
@@ -190,16 +194,18 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
// .margin({left:16,right:16})
}
// .width("100%"
)
.width(this.compDTO.operDataList.length >= 2 ? 'calc(18vp + 100%)' : CommonConstants.FULL_WIDTH
)
.padding({
left: $r('app.float.card_comp_pagePadding_lf'),
right: $r('app.float.card_comp_pagePadding_lf'),
left: this.compDTO.operDataList.length >= 2 ? 0 : 10,
right: this.compDTO.operDataList.length >= 2 ? 0 : 10,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: 6
})
.backgroundColor($r("app.color.white"))
// .backgroundColor($r("app.color.color_FE4B05"))
.margin({ bottom: 8 })
.margin({
left: this.compDTO.operDataList.length >= 2 ? -6 : 0,
bottom: 8
})
}
private jumpToLiveMorePage() {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
View file @
0caa713
...
...
@@ -122,6 +122,9 @@ export struct LiveHorizontalCardComponent {
.fontColor($r("app.color.color_222222"))
.fontWeight(600)
}
.padding({
left: this.compDTO.operDataList.length >= 2 ? 20 : 0
})
if (this.showMore()) {
Row() {
...
...
@@ -139,7 +142,6 @@ export struct LiveHorizontalCardComponent {
}
}
.justifyContent(FlexAlign.SpaceBetween)
// .padding({ left: 16, right: 16 })
.margin({ bottom: 10 })
.width(CommonConstants.FULL_WIDTH)
...
...
@@ -177,7 +179,7 @@ export struct LiveHorizontalCardComponent {
.lineHeight(21)
}
.height(this.compDTO.operDataList.length == 2 ? 167 : 134)
.padding({ right:
8
})
.padding({ right:
index == this.compDTO.operDataList.length - 1 ? 16 : 8, left: index == 0 ? 20: 0
})
.onClick(() => {
InfomationCardClick.track(this.compDTO, item, this.pageId, this.pageName)
if (item.objectType != '0') {
...
...
@@ -251,13 +253,16 @@ export struct LiveHorizontalCardComponent {
})
}
}
// .width(
CommonConstants.FULL_WIDTH)
.width(this.compDTO.operDataList.length >= 2 ? 'calc(18vp + 100%)' :
CommonConstants.FULL_WIDTH)
.padding({
left: 10,
right: 10,
left: this.compDTO.operDataList.length >= 2 ? 0 : 10,
right: this.compDTO.operDataList.length >= 2 ? 0 : 10,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: $r('app.float.card_comp_pagePadding_tb')
})
.margin({
left: this.compDTO.operDataList.length >= 2 ? -6 : 0
})
.backgroundColor($r("app.color.white"))
}
...
...
Please
register
or
login
to post a comment