chenjun

标题最多可展现4行

@@ -139,7 +139,7 @@ export struct PlayerTitleView { @@ -139,7 +139,7 @@ export struct PlayerTitleView {
139 Text(this.getTitle()) 139 Text(this.getTitle())
140 .fontColor(Color.White) 140 .fontColor(Color.White)
141 .fontSize(15) 141 .fontSize(15)
142 - .maxLines(3) 142 + .maxLines(4)
143 .lineHeight(20) 143 .lineHeight(20)
144 .fontWeight(600) 144 .fontWeight(600)
145 .fontFamily('PingFang SC-Regular') 145 .fontFamily('PingFang SC-Regular')
@@ -174,7 +174,7 @@ export struct PlayerTitleView { @@ -174,7 +174,7 @@ export struct PlayerTitleView {
174 // }) 174 // })
175 // } 175 // }
176 // } else { 176 // } else {
177 - if(this.summary) { 177 + if(this.summary && this.titleLines < 4) {
178 Text() { 178 Text() {
179 Span(this.clipText(this.summary, 14, this.summaryLines, this.windowWidth - 150 - vp2px(50))) 179 Span(this.clipText(this.summary, 14, this.summaryLines, this.windowWidth - 150 - vp2px(50)))
180 .fontSize(14) 180 .fontSize(14)