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-06 11:21:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2e21ebc2b2471dbbfd91b6f122513dbfc4a1f02e
2e21ebc2
1 parent
e73f15e1
fix |> 长按评论显示弹窗优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/view/areaPickerDialog/DeleteCommentDialogView.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/areaPickerDialog/DeleteCommentDialogView.ets
View file @
2e21ebc
...
...
@@ -2,14 +2,29 @@
@CustomDialog
export struct DeleteCommentDialogView {
functionData:FunctionsItem[] = [
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)]
@State configItem:string[] = ['回复','复制','删除']
@Provide functionData:FunctionsItem[] = []
controller: CustomDialogController
confirmCallback: (actionType:PublicCommentMoreActionType) => void = () => {
}
aboutToAppear(): void {
for (let index = 0; index < this.configItem.length; index++) {
const element = this.configItem[index];
if (element === '回复') {
this.functionData.push(new FunctionsItem('回复',$r('app.media.DeleteComment_reply'),PublicCommentMoreActionType.PublicCommentMoreActionType_Reply))
}
if (element === '复制') {
this.functionData.push(new FunctionsItem('复制',$r('app.media.DeleteComment_copy'),PublicCommentMoreActionType.PublicCommentMoreActionType_Copy))
}
if (element === '删除') {
this.functionData.push(new FunctionsItem('删除',$r('app.media.DeleteComment_delete'),PublicCommentMoreActionType.PublicCommentMoreActionType_Delete))
}
}
}
build() {
Column(){
Grid(){
...
...
Please
register
or
login
to post a comment