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-03 18:01:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
942e247590f3b0de04d4d1e02786f9c6a19a837a
942e2475
1 parent
6288e6b2
组件样式优化
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_09.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_10.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/ZhGridLayoutComponent.ets
sight_harmony/features/wdComponent/src/main/resources/base/element/float.json
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_09.ets
View file @
942e247
...
...
@@ -24,6 +24,7 @@ export struct CompStyle_09 {
// 大图
Image(this.compDTO.operDataList[0].coverUrl)
.width('100%')
.borderRadius({topLeft: $r('app.float.image_border_radius'), topRight: $r('app.float.image_border_radius')})
// 时间线--后端返回三个,
Column(){
ForEach(this.compDTO.operDataList[0].slideShows, (item:slideShows, index:number) => {
...
...
@@ -44,7 +45,7 @@ export struct CompStyle_09 {
.backgroundColor($r('app.color.color_F5F5F5'))
.width(CommonConstants.FULL_WIDTH)
.height(40)
.borderRadius(
3
)
.borderRadius(
$r('app.float.button_border_radius')
)
.justifyContent(FlexAlign.Center)
.margin({top: 5})
}
...
...
@@ -103,7 +104,7 @@ export struct CompStyle_09 {
Image(item.fullColumnImgUrls[0].url)
.width(90)
.height(60)
.borderRadius(
4
)
.borderRadius(
$r('app.float.image_border_radius')
)
}
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/CompStyle_10.ets
View file @
942e247
...
...
@@ -26,6 +26,7 @@ export struct CompStyle_10 {
// 大图
Image(this.compDTO.operDataList[0] && this.compDTO.operDataList[0].coverUrl)
.width('100%')
.borderRadius({topLeft: $r('app.float.image_border_radius'), topRight: $r('app.float.image_border_radius')})
.onClick((event: ClickEvent) => {
ProcessUtils.processPage(this.compDTO?.operDataList[0])
})
...
...
@@ -49,7 +50,7 @@ export struct CompStyle_10 {
.backgroundColor($r('app.color.color_F5F5F5'))
.width(CommonConstants.FULL_WIDTH)
.height(40)
.borderRadius(
3
)
.borderRadius(
$r('app.float.button_border_radius')
)
.justifyContent(FlexAlign.Center)
.margin({top: 5})
.onClick((event: ClickEvent) => {
...
...
@@ -105,7 +106,7 @@ export struct CompStyle_10 {
.width(117)
.height(78)
.objectFit(ImageFit.Cover)
.borderRadius(
4
)
.borderRadius(
$r('app.float.image_border_radius')
)
.margin({left: 12})
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/ZhGridLayoutComponent.ets
View file @
942e247
...
...
@@ -47,7 +47,7 @@ export struct ZhGridLayoutComponent {
buildItemCard(item: ContentDTO) {
Column() {
Image(item.coverUrl)
.
borderRadius(5
)
.
width(44
)
.aspectRatio(1 / 1)
.margin(16)
Text(item.newsTitle)
...
...
sight_harmony/features/wdComponent/src/main/resources/base/element/float.json
View file @
942e247
...
...
@@ -82,7 +82,11 @@
},
{
"name"
:
"image_border_radius"
,
"value"
:
"8vp"
"value"
:
"5vp"
},
{
"name"
:
"button_border_radius"
,
"value"
:
"3vp"
},
{
"name"
:
"border_radius_6"
,
...
...
Please
register
or
login
to post a comment