douaojie

fix: 控制标题显示

... ... @@ -38,6 +38,7 @@ export struct Card5Component {
]
})
Row() {
if (this.titleShowPolicy === 1) {
Text(this.contentDTO.newsTitle)
.width(CommonConstants.FULL_WIDTH)
.height(CommonConstants.FULL_HEIGHT)
... ... @@ -47,6 +48,8 @@ export struct Card5Component {
.maxLines(2)
.align(Alignment.Bottom)
}
}
.justifyContent(FlexAlign.Start)
.height(40)
.margin({ left: 12, bottom: 10, right: 12 })
... ...