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
wuyanan
2024-09-18 19:45:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8a2365bbc778445709e3512e911276bcbeb9d3ef
8a2365bb
1 parent
815d315d
ref |> 直播详情人民号名称过长时截取规则和安卓保持一致
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
View file @
8a2365b
...
...
@@ -63,7 +63,7 @@ export struct LiveFollowComponent {
bottom: 0,
})
//号主名称
Text(this.
rmhInfo.rmhName
)
Text(this.
getRmhName()
)
.fontColor(Color.White)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.maxLines(1)
...
...
@@ -151,4 +151,11 @@ export struct LiveFollowComponent {
}
})
}
getRmhName() {
if (this.rmhInfo.rmhName.length > 7) {
return this.rmhInfo.rmhName.substring(0, 7) + "..."
}
return this.rmhInfo.rmhName
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment