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
wangyong_wd
2024-03-28 14:21:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f52a800d2c39f3b5da790855b455b68331ea4b96
f52a800d
1 parent
e04a41a5
优化大专题卡样式
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_10.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/ZhSingleRow04.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_10.ets
View file @
f52a800
...
...
@@ -22,7 +22,7 @@ export struct CompStyle_10 {
.margin({ bottom: 19 })
}
// 大图
Image(this.compDTO.operDataList[0].coverUrl)
Image(this.compDTO.operDataList[0]
&& this.compDTO.operDataList[0]
.coverUrl)
.width('100%')
// 专题列表--后端返回三个,
Column(){
...
...
@@ -74,18 +74,20 @@ export struct CompStyle_10 {
.fontColor($r('app.color.color_222222'))
.maxLines(2)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.alignSelf(ItemAlign.Center)
Row(){
// 展示发稿人
Text(item.source)
.fontSize($r('app.float.font_size_12'))
.fontColor($r('app.color.color_B0B0B0'))
.layoutWeight(1)
.textOverflow({overflow: TextOverflow.Ellipsis})
.maxLines(1)
Image($r('app.media.point'))
.width(16)
.height(16)
if(item.source) {
Text(item.source)
.fontSize($r('app.float.font_size_12'))
.fontColor($r('app.color.color_B0B0B0'))
.textOverflow({overflow: TextOverflow.Ellipsis})
.maxLines(1)
.width(item.source.length > 10 ? '60%' : '')
Image($r('app.media.point'))
.width(16)
.height(16)
}
Text(DateTimeUtils.getCommentTime(Number.parseFloat(String(item.publishTime))))
.fontSize($r("app.float.font_size_12"))
.fontColor($r("app.color.color_B0B0B0"))
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/ZhSingleRow04.ets
View file @
f52a800
...
...
@@ -67,9 +67,9 @@ export struct ZhSingleRow04 {
Text(item.source)
.fontSize($r('app.float.font_size_12'))
.fontColor($r('app.color.color_B0B0B0'))
.layoutWeight(1)
.textOverflow({overflow: TextOverflow.Ellipsis})
.maxLines(1)
.width(item.source.length > 10 ? '60%' : '')
Image($r("app.media.point"))
.width(16)
.height(16)
...
...
Please
register
or
login
to post a comment