Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chenquansheng
2024-11-05 18:39:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
39e2f950cc72bce38db6e41ffa6fefcd539327d0
39e2f950
1 parent
302f15f2
fix |> 评论弹窗样式修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
27 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/areaPickerDialog/DeleteCommentDialogView.ets
sight_harmony/features/wdComponent/src/main/resources/base/media/DeleteComment_reply.png
sight_harmony/features/wdComponent/src/main/ets/components/view/areaPickerDialog/DeleteCommentDialogView.ets
View file @
39e2f95
...
...
@@ -3,39 +3,44 @@
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(){
this.girdItem(dataItem)
}.onClick(()=> {
Column(){
Grid(){
ForEach(this.functionData,(dataItem:FunctionsItem,index:number)=>{
GridItem() {
this.girdItem(dataItem)
}.onClick(()=> {
this.controller.close()
this.confirmCallback(dataItem.actionType)
})
.height(88)
})
}
.backgroundColor('#f8f8f8')
.rowsTemplate('1fr')
.columnsTemplate('1fr 1fr 1fr 1fr 1fr')
.height(113)
Divider()
.color('#f5f5f5')
.width('100%')
.strokeWidth(5)
Button('取消',{type:ButtonType.Normal}).height(60).width('100%').fontSize(14).fontColor('#222222').backgroundColor(0xffffff)
.onClick(()=>{
this.controller.close()
this.confirmCallback(index)
})
.height(88)
})
}
.backgroundColor('#f8f8f8')
.rowsTemplate('1fr')
.columnsTemplate('1fr 1fr 1fr 1fr 1fr')
.height(113)
Divider()
.color('#f5f5f5')
.width('100%')
.strokeWidth(5)
Button('取消',{type:ButtonType.Normal}).height(60).width('100%').fontSize(14).fontColor('#222222').backgroundColor(0xffffff)
.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
}
}
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/DeleteComment_reply.png
0 → 100644
View file @
39e2f95
5.21 KB
Please
register
or
login
to post a comment