xugenyuan

ref |> 增加评论长按手势识别

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -494,10 +494,26 @@ struct ChildCommentItem {
.onClick(() => {
this.replyComment()
})
.gesture(
LongPressGesture()
.onAction((event: GestureEvent|undefined)=>{
if (event) {
//TODO: 显示功能菜单
}
})
)
if (this.item.commentPics.length > 0) {
Image(this.item.commentPics)
.width(88).height(88)
.margin({top: 6 + (this.item.commentContent.length > 0 ? 0 : 15), left: this.leftGap})
.gesture(
LongPressGesture()
.onAction((event: GestureEvent|undefined)=>{
if (event) {
//TODO: 显示功能菜单
}
})
)
}
commentFooterView({
... ... @@ -718,11 +734,27 @@ struct commentHeaderView {
.onClick(() => {
this.replyComment()
})
.gesture(
LongPressGesture()
.onAction((event: GestureEvent|undefined)=>{
if (event) {
//TODO: 显示功能菜单
}
})
)
if (this.item.commentPics.length > 0) {
Image(this.item.commentPics)
.width(88).height(88)
.margin({top: 6 + (this.item.commentContent.length > 0 ? 0 : 15), left: this.leftGap})
.gesture(
LongPressGesture()
.onAction((event: GestureEvent|undefined)=>{
if (event) {
//TODO: 显示功能菜单
}
})
)
}
commentFooterView({
... ...