electron-auto-setting
How to Use?
const app Menu Tray = const resolve = let setting = icon: 'icon-settings' label: '设置' configs: gender: type: 'choice' label: '性别' choices: 'male' 'female' defaultValue: 'male' path: type: 'path' label: '保存路径' defaultValue: __dirname output: type: 'boolean' label: '是否保存' defaultValue: true icon: 'icon-airplay' label: '电脑' configs: API_KEY: type: 'string' label: 'API_KEY' defaultValue: 'xxxx' let win = nulllet tray = null { win = store console} app app
icon
https://at-ui.github.io/at-ui/#/zh/docs/icon
Type
- choice
- path
- boolean
- string