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
wangyong_wd
2024-04-21 20:48:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8b9995070b5a116f6b0bcbe73973629b5a783c7f
8b999507
1 parent
71b0a2aa
fix:优化轮播图点击事件;标题加上corner字段
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhCarouselLayout01.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhCarouselLayout01.ets
View file @
8b99950
...
...
@@ -141,8 +141,10 @@ export struct ZhCarouselLayout01 {
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: $r('app.float.card_comp_pagePadding_tb')
})
// .backgroundColor($r('app.color.white'))
.onClick((event: ClickEvent) => {
Logger.info(TAG, `ZhCarouselLayout01 onClick event index: ${this.swiperIndex}`);
ProcessUtils.processPage(this.compDTO.operDataList[this.swiperIndex])
})
} else {
EmptyComponent({ emptyHeight: 200 })
}
...
...
@@ -173,7 +175,7 @@ struct CarouselLayout01CardView {
colors: [[0x7508111A, 0.0], [0x7508111A, 0.3], [Color.Transparent, 1.0]]
})
// 文本信息
Text(`${this.item.newsTitle}`)
Text(`${this.item.
corner}${this.item.
newsTitle}`)
.width(CommonConstants.FULL_PARENT)
.height(39)
.padding({
...
...
@@ -195,10 +197,6 @@ struct CarouselLayout01CardView {
.aspectRatio(CompUtils.ASPECT_RATIO_2_1)
.alignContent(Alignment.BottomStart)
.hoverEffect(HoverEffect.Scale)
.onClick((event: ClickEvent) => {
Logger.info(TAG, `ZhCarouselLayout01 onClick event index: ${this.index}`);
ProcessUtils.processPage(this.item)
})
}
}
...
...
Please
register
or
login
to post a comment