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
liyubing
2024-05-17 18:05:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f15e08e033936d593b466501d21a20a3f4cd9399
f15e08e0
1 parent
5ad981d8
feat(信息流):修改一行两图卡ui布局
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/CompNormalTitle.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhGridLayout02NewsContent.ets
sight_harmony/features/wdComponent/src/main/resources/base/element/color.json
sight_harmony/features/wdComponent/src/main/ets/components/compview/CompNormalTitle.ets
View file @
f15e08e
...
...
@@ -30,7 +30,7 @@ export struct CompNormalTitle {
.fontWeight(600)
}
.justifyContent(FlexAlign.Start)
.margin({ top: 16, bottom:
8
})
.margin({ top: 16, bottom:
10
})
.width(CommonConstants.FULL_WIDTH)
}
.width(CommonConstants.FULL_WIDTH)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhGridLayout02NewsContent.ets
View file @
f15e08e
...
...
@@ -25,8 +25,8 @@ export struct ZhGridLayout02NewsContent {
build() {
GridRow({
gutter: { x: 12, y: 13 },
columns: { sm: listSize, md: 2 },
gutter: { x: 9, y: 0 },
columns: { sm: listSize, md: listSize },
breakpoints: { value: ['320vp', '520vp', '840vp'] }
}) {
ForEach(this.operDataList, (item: ContentDTO, index: number) => {
...
...
@@ -46,13 +46,16 @@ export struct ZhGridLayout02NewsContent {
.backgroundColor(0xf5f5f5)
.width('100%')
.height(95)
.borderWidth(0.5)
.borderColor($r('app.color.color_0D000000'))
.borderRadius(4)
if (this.compDTO.operDataList[index].liveRoomDataBean != undefined
&& this.compDTO.operDataList[index].liveRoomDataBean?.pv != undefined) {
Text(this.computeShowNum(this.compDTO.operDataList[index].liveRoomDataBean))
.fontSize(
'11vp'
)
.fontSize(
12
)
.fontWeight(400)
.fontColor(Color.White)
.textShadow({ radius: 2, color: 'rgba(0,0,0,0.3)', offsetX: 0, offsetY: 2 })
.margin({
right: '5vp',
bottom: '5vp'
...
...
@@ -61,9 +64,10 @@ export struct ZhGridLayout02NewsContent {
}
Text(item.newsTitle)
.margin({ top: '6', bottom: '10' })
.fontSize(13)
.margin({ top: 8, bottom: 14 })
.fontSize(15)
.maxLines(2)
.lineHeight(21)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}
.width('100%')
...
...
sight_harmony/features/wdComponent/src/main/resources/base/element/color.json
View file @
f15e08e
...
...
@@ -169,6 +169,10 @@
{
"name"
:
"color_ED2800_99"
,
"value"
:
"#99ED2800"
},
{
"name"
:
"color_white_30"
,
"value"
:
"#4D000000"
}
]
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment