接口:Dialog
Table of contents
允许打开原生对话框。
自
0.2.3
方法
showOpenDialog
▸ showOpenDialog(dialogProperties): Promise<OpenDialogResult>
显示原生打开对话框。可用于选择文件或文件夹。
ddClient.desktopUI.dialog.showOpenDialog({properties: ['openFile']});参数
| 名称 | 类型 | 描述 |
|---|---|---|
dialogProperties |
any |
用于指定打开对话框行为的属性,参见 https://www.electronjs.org/docs/latest/api/dialog#dialogshowopendialogbrowserwindow-options。 |
返回值
Promise<OpenDialogResult>