急! 关于编辑器扩展 提示框的问题 Editor.Dialog

Editor.Dialog
Methods
Editor.Dialog.openFile(…args)
Send ‘dialog:open-file’ to the main process

Editor.Dialog.saveFile(…args)
Send ‘dialog:save-file’ to the main process

Editor.Dialog.messageBox(…args)
Send ‘dialog:message-box’ to the main process

这三个参数是什么呢? 比如说我要调用 Editor.Dialog.messageBox()

这里面的参数填写什么? 按照什么方式去填写呢?

比如说第一个参数是 标题, 第二个是 内容, 第三个是 确认按钮回调? 类似这种的

参数的类型是什么? string number 亦或者是 function?

https://electronjs.org/docs/api/dialog 可以看一下 electron 的文档

官方大大,openFile参数defaultPath不能用相对路径,急求范例!!!

没有示例吗?electron和Editor写的格式都不一样,就算知道可以干什么,也得花点时间去试格式