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-08-22 11:15:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e0a466b5ef06ccedd3f780bd41293428f264a5fe
e0a466b5
1 parent
0b31b813
fix: 兴趣卡折叠屏ui适配
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleColumn09.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleColumn09.ets
View file @
e0a466b
...
...
@@ -132,7 +132,7 @@ export struct ZhSingleColumn09 {
.width('100%')
Grid() {
ForEach(this.operDataList, (item: ContentDTO, index: number) => {
ForEach(this.operDataList
.slice(0, 8)
, (item: ContentDTO, index: number) => {
GridItem() {
Stack({ alignContent: Alignment.TopEnd }) {
Image(this.loadImg ? item.coverUrl : '')
...
...
@@ -161,7 +161,7 @@ export struct ZhSingleColumn09 {
.objectFit(ImageFit.Contain)
}
.width('100%')
.
height('100%'
)
.
aspectRatio(2 / 1
)
}
.margin({ right: index % 4 === 3 ? 0 : 6, bottom: 6 })
.onClick(() => {
...
...
@@ -174,9 +174,7 @@ export struct ZhSingleColumn09 {
})
})
}
.height(90)
.columnsTemplate('1fr 1fr 1fr 1fr')
.rowsTemplate('1fr 1fr')
.margin({ bottom: 5 })
Row() {
...
...
Please
register
or
login
to post a comment