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
liujian1_wd
2023-12-27 09:37:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
347233dc67aa6d59896224fc3a47f048a00852c7
347233dc
1 parent
4d87e91c
添加楼层
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
sight_harmony/wdComponent/src/main/ets/components/GridLayout01Component.ets
sight_harmony/wdComponent/src/main/ets/components/SingleRow03Component.ets
sight_harmony/wdComponent/src/main/ets/components/GridLayout01Component.ets
View file @
347233d
...
...
@@ -76,17 +76,11 @@ export struct GridLayout01Component {
@Builder
buildItemTopImgBottomTxt01(item: ContentDTO, index: number){
Column(){
RelativeContainer() {
Image(item.hImageUrl)
.width('100%')
.aspectRatio(16 / 9)
.borderRadius($r("app.float.image_border_radius"))
.objectFit(ImageFit.Cover)
.alignRules({
top: { anchor: '__container__', align: VerticalAlign.Top },
left: { anchor: '__container__', align: HorizontalAlign.Start }
})
.id('img_cover')
Text(item.title)
.width('100%')
...
...
@@ -97,16 +91,6 @@ export struct GridLayout01Component {
.fontColor($r('app.color.color_333333'))
.maxLines(2)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.alignRules({
top: {anchor:'img_cover', align: VerticalAlign.Bottom},
left: {anchor: 'img_cover', align: HorizontalAlign.Start},
right:{anchor: 'img_cover', align: HorizontalAlign.End}
})
.id("tv_title")
}
.width('100%')
.height($r('app.float.single_row_03_item_height'))
}
.backgroundColor(Color.White)
.hoverEffect(HoverEffect.Scale)
...
...
sight_harmony/wdComponent/src/main/ets/components/SingleRow03Component.ets
View file @
347233d
...
...
@@ -24,6 +24,7 @@ export struct SingleRow03Component {
}
.listDirection(Axis.Horizontal)
.lanes(1)
.margin({left: 12, right: 12})
.scrollBar(BarState.Off)
}
...
...
@@ -72,7 +73,7 @@ export struct SingleRow03Component {
})
Text(item.startTime)
Text(item.startTime
.substring(0, 10)
)
.fontWeight(FontWeight.Normal)
.textAlign(TextAlign.Start)
.margin({ left: 6})
...
...
Please
register
or
login
to post a comment