wangliang_wd

Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main

* 'main' of http://192.168.1.42/developOne/harmonyPool:
  fix |> 评论弹窗样式修改
... ... @@ -3,21 +3,22 @@
export struct DeleteCommentDialogView {
functionData:FunctionsItem[] = [
new FunctionsItem('复制',$r('app.media.DeleteComment_copy')),
new FunctionsItem('删除',$r('app.media.DeleteComment_delete')),]
new FunctionsItem('回复',$r('app.media.DeleteComment_reply'),PublicCommentMoreActionType.PublicCommentMoreActionType_Reply),
new FunctionsItem('复制',$r('app.media.DeleteComment_copy'),PublicCommentMoreActionType.PublicCommentMoreActionType_Copy),
new FunctionsItem('删除',$r('app.media.DeleteComment_delete'),PublicCommentMoreActionType.PublicCommentMoreActionType_Delete)]
controller: CustomDialogController
confirmCallback: (selectIndex:number) => void = () => {
confirmCallback: (actionType:PublicCommentMoreActionType) => void = () => {
}
build() {
Column(){
Grid(){
ForEach(this.functionData,(dataItem:FunctionsItem,index:number)=>{
GridItem(){
GridItem() {
this.girdItem(dataItem)
}.onClick(()=> {
this.controller.close()
this.confirmCallback(index)
this.confirmCallback(dataItem.actionType)
})
.height(88)
})
... ... @@ -35,7 +36,11 @@ export struct DeleteCommentDialogView {
.onClick(()=>{
this.controller.close()
})
}.height(198).width('100%').backgroundColor(Color.White)
}
.height(198)
.width('100%')
.backgroundColor(Color.White)
.alignItems(HorizontalAlign.End)
}
@Builder
... ... @@ -60,12 +65,23 @@ export struct DeleteCommentDialogView {
}
}
export enum PublicCommentMoreActionType {
/// 删除
PublicCommentMoreActionType_Delete = 0,
/// 复制
PublicCommentMoreActionType_Copy = 1,
/// 回复
PublicCommentMoreActionType_Reply = 2,
}
class FunctionsItem {
msg:string
imgSrc:Resource
actionType:PublicCommentMoreActionType
constructor(msg:string,imgSrc:Resource){
constructor(msg:string,imgSrc:Resource,actionType:PublicCommentMoreActionType){
this.msg = msg
this.imgSrc = imgSrc
this.actionType = actionType
}
}
... ...