-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from mgz0227/dev_2008
管理页隐藏文件、隐藏弹窗
- Loading branch information
Showing
5 changed files
with
127 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
@CustomDialog | ||
export default struct hideDialogExample { | ||
|
||
controller?: CustomDialogController | ||
// 若尝试在CustomDialog中传入多个其他的Controller,以实现在CustomDialog中打开另一个或另一些CustomDialog,那么此处需要将指向自己的controller放在所有controller的后面 | ||
cancel: () => void = () => { | ||
} | ||
confirm: () => void = () => { | ||
} | ||
@Prop title:string | ||
|
||
build() { | ||
Column() { | ||
Text(`确定隐藏吗?` ).fontWeight(600).maxLines(1).minFontSize(12).maxFontSize(20).margin({ top: 20, bottom: 10 }) | ||
Text('隐藏后可点击分组标签栏右侧分组管理入口查看隐藏分组并进入').width('70%').textAlign(TextAlign.Center) | ||
.fontColor('rgba(0, 0, 0, 0.45)').fontSize(14).fontWeight(400).lineHeight(22) | ||
Row({space:24}) { | ||
Text('取消') | ||
.onClick(() => { | ||
if (this.controller != undefined) { | ||
this.controller.close() | ||
this.cancel() | ||
} | ||
}) | ||
.borderRadius(15) | ||
.padding({left:30,right:30,top:10,bottom:10}) | ||
.fontColor($r('app.color.theme_color')) | ||
.backgroundColor('rgba(255,120,0,0.12)') | ||
Text('确认') | ||
.onClick(() => { | ||
if (this.controller != undefined) { | ||
this.controller.close() | ||
this.confirm() | ||
} | ||
}) | ||
.borderRadius(15) | ||
.padding({left:30,right:30,top:10,bottom:10}) | ||
.fontColor(Color.White) | ||
.backgroundColor($r('app.color.theme_color')) | ||
}.padding({top:20,bottom:20}) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters