Showing
1 changed file
with
4 additions
and
1 deletions
| @@ -78,9 +78,12 @@ export struct PeopleShipHomeArticleListComponent { | @@ -78,9 +78,12 @@ export struct PeopleShipHomeArticleListComponent { | ||
| 78 | 78 | ||
| 79 | List({scroller: this.scroller}) { | 79 | List({scroller: this.scroller}) { |
| 80 | // 下拉刷新 | 80 | // 下拉刷新 |
| 81 | - ForEach(this.arr, (item: ContentDTO) => { | 81 | + ForEach(this.arr, (item: ContentDTO, index: number) => { |
| 82 | ListItem() { | 82 | ListItem() { |
| 83 | + Column() { | ||
| 83 | CardParser({compDTO:new CompDTO, contentDTO: item }) | 84 | CardParser({compDTO:new CompDTO, contentDTO: item }) |
| 85 | + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) | ||
| 86 | + } | ||
| 84 | }.width("100%") | 87 | }.width("100%") |
| 85 | .backgroundColor(Color.Transparent) | 88 | .backgroundColor(Color.Transparent) |
| 86 | }, (item: ContentDTO, index: number) => item.objectId + index.toString()) | 89 | }, (item: ContentDTO, index: number) => item.objectId + index.toString()) |
-
Please register or login to post a comment