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-23 09:31:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d803ccb9106d038ab9a4dc12833f52c4aafa7c57
d803ccb9
1 parent
feab417f
fix: 兴趣卡ui优化
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 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 @
d803ccb
...
...
@@ -131,9 +131,9 @@ export struct ZhSingleColumn09 {
.justifyContent(FlexAlign.SpaceBetween)
.width('100%')
Grid(
) {
Flex({wrap: FlexWrap.Wrap}
) {
ForEach(this.operDataList.slice(0, 8), (item: ContentDTO, index: number) => {
GridItem
() {
Row
() {
Stack({ alignContent: Alignment.TopEnd }) {
Image(this.loadImg ? item.coverUrl : '')
.backgroundColor(0xf5f5f5)
...
...
@@ -163,6 +163,7 @@ export struct ZhSingleColumn09 {
.width('100%')
.aspectRatio(2 / 1)
}
.width('calc((100% - 6vp * 3) / 4)')
.margin({ right: index % 4 === 3 ? 0 : 6, bottom: 6 })
.onClick(() => {
if (this.activeIndexs.includes(index)) {
...
...
@@ -174,7 +175,7 @@ export struct ZhSingleColumn09 {
})
})
}
.columnsTemplate('1fr 1fr 1fr 1fr')
//
.columnsTemplate('1fr 1fr 1fr 1fr')
.margin({ bottom: 5 })
Row() {
...
...
Please
register
or
login
to post a comment