界面:对话框
目录
允许打开原生对话框。
自版本
0.2.3
方法
showOpenDialog
▸ showOpenDialog(dialogProperties
): Promise
< OpenDialogResult
>
显示一个原生的打开对话框。允许您选择文件或文件夹。
ddClient.desktopUI.dialog.showOpenDialog({properties: ['openFile']});
参数
名称 | 类型 | 描述 |
---|---|---|
dialogProperties | any | 指定打开对话框行为的属性,请参见 https://electron.js.cn/docs/latest/api/dialog#dialogshowopendialogbrowserwindow-options。 |
返回值
Promise
< OpenDialogResult
>