接口: 对话框
目录
允许打开原生对话框。
Since
0.2.3
方法
showOpenDialog
▸ showOpenDialog(dialogProperties): Promise<
OpenDialogResult>
显示一个原生的打开对话框。让你选择一个文件或文件夹。
ddClient.desktopUI.dialog.showOpenDialog({properties: ['openFile']});参数
| Name | Type | Description |
|---|---|---|
dialogProperties | any | Properties to specify the open dialog behaviour, see https://www.electronjs.org/docs/latest/api/dialog#dialogshowopendialogbrowserwindow-options. |
返回
Promise<
OpenDialogResult>