chenjun

标题最多可展现4行

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