陈剑华

fix: 直播预告卡折叠屏展开适配

... ... @@ -220,6 +220,9 @@ export struct ZhSingleRow03 {
.margin({left: 1.5 * (this.moreWidth - this.initMoreWidth)})
}
}
.constraintSize({
minWidth: '100%'
})
}
.align(Alignment.Start)
.scrollable(this.compDTO.operDataList.length >= 2 ? ScrollDirection.Horizontal : ScrollDirection.None)
... ... @@ -259,7 +262,7 @@ export struct ZhSingleRow03 {
ItemCard(item: ContentDTO) {
if (this.compDTO.operDataList.length >= 2) {
Column() {
Row() {
Flex({alignContent: FlexAlign.Start}) {
Image(this.loadImg ? item.coverUrl : '')
.backgroundColor(0xf5f5f5)
.borderRadius(4)
... ... @@ -269,15 +272,18 @@ export struct ZhSingleRow03 {
width: 0.7,
color: '#EDEDED',
})
.flexShrink(0)
Text(item.newsTitle)
.width(154)
.height(60)
.constraintSize({
maxHeight: 60
})
.maxLines(3)
.fontSize(15)
.textOverflow({overflow: TextOverflow.Ellipsis})
.margin({left: 12})
.flexShrink(1)
}
.margin({bottom: 16})
... ... @@ -348,7 +354,11 @@ export struct ZhSingleRow03 {
}
}
.width(298)
// .width(298)
.constraintSize({
minWidth: 298,
maxWidth: '60%'
})
.height(116)
.padding({top: 12, bottom: 12, left: 12, right: 12})
.backgroundColor(0xf9f9f9)
... ...