13、electron-vue常用API
electron API对话框const { dialog } = require('electron')...dialog.showMessageBox({type: 'info',title: 'Found Updates',message: 'Found updates, do you want update now?',buttons: ...
·
对话框
const { dialog } = require('electron')
...
dialog.showMessageBox({
type: 'info',
title: 'Found Updates',
message: 'Found updates, do you want update now?',
buttons: ['Sure', 'No']
}, (buttonIndex) => {
if (buttonIndex === 0) {
autoUpdater.downloadUpdate()
}
})
...
更多推荐
已为社区贡献1条内容
所有评论(0)