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
chenqs
2024-07-15 17:33:03 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f959b36f27aee46525c12499960f5ebd4c2e5c00
f959b36f
1 parent
1abf5751
fix |> 修复搜索模块人民号名称显示<em>标签
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchCreatorComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchCreatorComponent.ets
View file @
f959b36
...
...
@@ -5,6 +5,15 @@ import { SearchRmhDescription } from '../../viewmodel/SearchResultContentItem'
@Component
export struct SearchCreatorComponent{
@ObjectLink item: SearchRmhDescription
userName: string = ''
aboutToAppear(): void {
const userNetName: string = this.item.creatorName;
this.userName = userNetName;
if (userNetName.includes('<em>') && userNetName.includes('</em>')) {
this.userName = userNetName.replaceAll('<em>','').replaceAll('</em>','');
}
}
build() {
Column(){
...
...
@@ -26,7 +35,7 @@ export struct SearchCreatorComponent{
.height('92lpx')
.margin({bottom:'15lpx'})
Text(this.
item.creato
rName)
Text(this.
use
rName)
.fontSize('25lpx')
.fontWeight('400lpx')
.lineHeight('35lpx')
...
...
Please
register
or
login
to post a comment