Ares

ref |> 修改头图卡组件、头图卡稿件标题展示策略

... ... @@ -68,7 +68,7 @@ export struct Card5Component {
.borderColor($r('app.color.color_0D000000'))
.height(this.loadImg ? '' : 114)
.autoResize(true)
if (this.contentDTO.titleShow == 1) {
if ((this.contentDTO.titleShow == 1 && this.contentDTO.appStyle == '5') || (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02 && this.compDTO.titleShowPolicy == '1')) {
Row()
.borderRadius(
{
... ... @@ -87,7 +87,7 @@ export struct Card5Component {
})
Row() {
if (this.compDTO.titleShow == 1 && this.contentDTO.newsTitle) {
if ((this.contentDTO.titleShow == 1 && this.contentDTO.appStyle == '5') || (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02 && this.compDTO.titleShowPolicy == '1') && this.contentDTO.newsTitle) {
Stack() {
if(this.contentDTO.objectType == '5'){
Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
... ...