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-25 15:52:50 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
0a0cee6b9231af7b207b7fbff19b889bb48491d5
0a0cee6b
2 parents
2ff6851b
c3e6ca8f
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/RecommendList.ets
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
View file @
0a0cee6
...
...
@@ -37,6 +37,7 @@ export struct CardParser {
pageShowTime: number = 0;
pageHideTime: number = 0;
isPeopleShipHome: boolean = false;
isNeedDivider:boolean = true
aboutToAppear(): void {
console.log('CardParser-', JSON.stringify(this.contentDTO))
...
...
@@ -66,11 +67,13 @@ export struct CardParser {
@Builder
getBehindDivider() {
behindDivider({
compDTO: this.compDTO,
nextCompDTO: this.nextCompDTO,
compIndex: this.compIndex
})
if(this.isNeedDivider){
behindDivider({
compDTO: this.compDTO,
nextCompDTO: this.nextCompDTO,
compIndex: this.compIndex
})
}
}
@Builder
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/RecommendList.ets
View file @
0a0cee6
...
...
@@ -29,7 +29,7 @@ export struct RecommendList {
}
ForEach(this.recommendList, (item: ContentDTO, index: number) => {
Row() {
CardParser({ compDTO:new CompDTO,contentDTO: item });
CardParser({ compDTO:new CompDTO,contentDTO: item
,isNeedDivider:false
});
}.padding({ left: 6, right: 6 })
if (this.recommendList.length !== index + 1) {
Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
...
...
Please
register
or
login
to post a comment