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 14:08:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
019f75e5ad83f3e5d99221680f3ffec2e70727a0
019f75e5
1 parent
5e7d577b
fix: 20109 大专题卡-专题标题名称应最多展示2行,超过2行省略展示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card10Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card10Component.ets
View file @
019f75e
...
...
@@ -101,7 +101,11 @@ export struct Card10Component {
.fontSize($r('app.float.font_size_18'))
.fontWeight(FontWeight.Normal)
.lineHeight(25)
.maxLines(this.contentDTO.appStyle === CompStyle.Card_09 ? 2 : 1)
.maxLines(
router.getState().name === 'MyCollectionListPage'
? this.contentDTO.appStyle === CompStyle.Card_09 ? 2 : 1
: 2
)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.margin({ bottom: 8 })
.onClick((event: ClickEvent) => {
...
...
Please
register
or
login
to post a comment