chengen02

-fix 修改时间轴组件底部按钮评论展示bug

... ... @@ -99,6 +99,7 @@ export struct CommentTabComponent {
bottom: { anchor: "__container__", align: VerticalAlign.Bottom },
})
.id("Image")
.visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
}
Text(this.placeHolder)
.fontSize(12)
... ... @@ -110,6 +111,7 @@ export struct CommentTabComponent {
bottom: { anchor: "__container__", align: VerticalAlign.Bottom },
})
.id("Text")
.visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
}
}
}
... ... @@ -134,6 +136,7 @@ export struct CommentIconComponent {
@ObjectLink publishCommentModel: publishCommentModel
/*展示类型*/
@State type: number = 1
@Prop contentDetail: ContentDetailDTO
styleType: number = 1 //1: 白色背景(图文底部栏) 2: 黑色背景(图集底部栏)
// aboutToAppear(): void {
// setTimeout(() => {
... ... @@ -206,7 +209,10 @@ export struct CommentIconComponent {
}
}
}.width(24).height(24)
}
.width(24)
.height(24)
.visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
// .backgroundColor(Color.Blue)
}
... ...
... ... @@ -224,7 +224,11 @@ export struct OperRowListView {
if (this.showCommentIcon) {
Column() {
if (this.publishCommentModel?.targetId) {
CommentIconComponent({ publishCommentModel: this.publishCommentModel, styleType: this.styleType })
CommentIconComponent({
publishCommentModel: this.publishCommentModel,
styleType: this.styleType,
contentDetail: this.contentDetailData
})
.onClick(() => {
this.onCommentIconClick()
... ...