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
yangchenggong1_wd
2024-10-08 14:03:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5f51b255763c160b289b86913eb322dbbf214b5d
5f51b255
1 parent
cf8e3ee0
fix |> 20634 搜索结果,分割线重叠展示,中间变粗
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
22 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/MoreComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchResultComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchResultContentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
View file @
5f51b25
...
...
@@ -88,6 +88,7 @@ export struct CardParser {
pageId: this.pageId,
pageName: this.pageName
})
this.getBehindDivider()
} else {
if (contentDTO.appStyle === CompStyle.Card_02) {
Card2Component({
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/MoreComponent.ets
View file @
5f51b25
...
...
@@ -27,14 +27,17 @@ export struct MoreComponent {
if (item.appStyle !== "9") {
CardParser({compDTO:new CompDTO, contentDTO: item })
} else {
Card9Component({ compDTO: new CompDTO, contentDTO:item, pageId: "", pageName: "" })
Column(){
Card9Component({ compDTO: new CompDTO, contentDTO:item, pageId: "", pageName: "" })
Divider()
.width('100%')
.color($r('app.color.color_F5F5F5'))
.strokeWidth(4)
}
}
})
Divider()
.width('100%')
.color($r('app.color.color_F5F5F5'))
.strokeWidth(4)
} else {
Column() {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchResultComponent.ets
View file @
5f51b25
...
...
@@ -115,13 +115,6 @@ export struct SearchResultComponent {
ListItem() {
Column() {
CardParser({compDTO:new CompDTO,contentDTO:item})
if (index != this.data.totalCount() - 1) {
Divider()
.width('100%')
.height(`${this.calcHeight(1)}lpx`)
.color($r('app.color.color_F5F5F5'))
.strokeWidth(`${this.calcHeight(1)}lpx`)
}
}
}
})
...
...
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchResultContentComponent.ets
View file @
5f51b25
...
...
@@ -310,18 +310,8 @@ export struct SearchResultContentComponent {
Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
}
} else {
if (this.data?.get(index + 1)?.sameContentListSize > 0 && index !== 0) {
Divider()
.width('100%')
.color($r('app.color.color_F5F5F5'))
.strokeWidth(4)
}
CardParser({ compDTO: new CompDTO, contentDTO: item })
}
if (index != this.data.totalCount() - 1) {
Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
}
}
}
}, (item: ContentDTO, index: number) => index.toString())
...
...
Please
register
or
login
to post a comment