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
wanglei
2024-02-01 23:06:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
12bd3bc1c206861388e7471ed4512d7632eaf7af
12bd3bc1
1 parent
e63957be
合并代码-无图卡
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
sight_harmony/wdComponent/src/main/ets/components/view/TitleAbbrComponent.ets
sight_harmony/wdComponent/src/main/ets/components/view/TitleAllComponent.ets
sight_harmony/wdComponent/src/main/ets/components/view/TitleAbbrComponent.ets
View file @
12bd3bc
//缩略标题
import { CompDTO } from 'wdBean'
import { CommonConstants } from 'wdConstant'
import { CompDTO } from 'wdBean'
import { DateTimeUtils } from 'wdKit'
@Component
export struct TitleAbbrComponent {
...
...
@@ -8,7 +9,7 @@ export struct TitleAbbrComponent {
build() {
Column() {
Text(this.compDTO.operDataList[0].
t
itle)
Text(this.compDTO.operDataList[0].
newsT
itle)
.fontSize($r("app.float.font_size_16"))
.fontColor($r("app.color.color_222222"))
.maxLines(3)
...
...
@@ -26,7 +27,7 @@ export struct TitleAbbrComponent {
.width(16)
.height(16)
Text(
"46分钟前"
)
Text(
DateTimeUtils.formatDate(Number.parseFloat(this.compDTO.operDataList[0].publishTime))
)
.fontSize($r("app.float.font_size_12"))
.fontColor($r("app.color.color_B0B0B0"))
...
...
sight_harmony/wdComponent/src/main/ets/components/view/TitleAllComponent.ets
View file @
12bd3bc
//全标题 "compStyle":"3",
import { CompDTO } from 'wdBean'
import { CommonConstants } from 'wdConstant'
import { CompDTO } from 'wdBean'
import { DateTimeUtils } from 'wdKit/src/main/ets/utils/DateTimeUtils'
import { Logger } from 'wdKit/src/main/ets/utils/Logger'
@Component
export struct TitleAllComponent {
...
...
@@ -8,7 +10,7 @@ export struct TitleAllComponent {
build() {
Column() {
Text(this.compDTO.operDataList[0].
t
itle)
Text(this.compDTO.operDataList[0].
newsT
itle)
.fontSize($r("app.float.font_size_16"))
.fontColor($r("app.color.color_222222"))
.width(CommonConstants.FULL_WIDTH)
...
...
@@ -24,7 +26,7 @@ export struct TitleAllComponent {
.width(16)
.height(16)
Text(
"46分钟前"
)
Text(
DateTimeUtils.formatDate(Number.parseFloat(this.compDTO.operDataList[0].publishTime))
)
.fontSize($r("app.float.font_size_12"))
.fontColor($r("app.color.color_B0B0B0"))
...
...
@@ -42,4 +44,7 @@ export struct TitleAllComponent {
.backgroundColor($r("app.color.white"))
.margin({ bottom: 8 })
}
aboutToAppear(){
// Logger.info("ssx",JSON.stringify(this.compDTO.operDataList[0]))
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment