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
guochunsong
2024-02-03 10:53:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4b4b92970578ea192e6340064a7315c711a67d7c
4b4b9297
1 parent
7f5adc6c
金刚卡微调
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
22 deletions
sight_harmony/wdComponent/src/main/ets/components/view/ZhGridLayoutComponent.ets
sight_harmony/wdComponent/src/main/ets/components/view/ZhGridLayoutComponent.ets
View file @
4b4b929
...
...
@@ -18,42 +18,33 @@ export struct ZhGridLayoutComponent {
@State compDTO: CompDTO = {} as CompDTO
aboutToAppear() {
Logger.info(TAG + ' comp:'+ JSON.stringify(this.compDTO))
//
Logger.info(TAG + ' comp:'+ JSON.stringify(this.compDTO))
}
build() {
Column() {
Flex({ wrap: FlexWrap.Wrap,
justifyContent: FlexAlign.SpaceEvenly,
alignItems
:ItemAlign.End
}) {
alignItems
: ItemAlign.End
}) {
ForEach(this.compDTO.operDataList, (item: ContentDTO) => {
Column() {
Image(item.coverUrl)
.width(50)
.borderRadius(5)
.aspectRatio(1 / 1)
.autoResize(true)
Text(item.newsTitle)
.fontSize(16)
.padding({ top: 10 })
}.margin({
top:5,
bottom:5,
left:5,
right :5
})
Image(item.coverUrl)
.width(44)
.borderRadius(5)
.aspectRatio(1 / 1)
.autoResize(true)
Text(item.newsTitle)
.fontSize(13)
.padding({ top: 8 })
}.height(68).width(75)
}, (item: ContentDTO) => JSON.stringify(item))
}
.backgroundColor(Color.White)
.borderRadius(12)
.padding({
top: 10,
bottom: 10
top: 14,
bottom: 14
})
.width(FULL_PARENT)
.margin(10)
}
}
}
...
...
Please
register
or
login
to post a comment