VarInput支持选择文件

This commit is contained in:
fofolee
2025-01-06 17:13:17 +08:00
parent 5ea6850bb9
commit 516e6c2d16
8 changed files with 222 additions and 171 deletions

View File

@@ -19,6 +19,12 @@ export const fileCommands = {
label: "文件、文件夹或软件的绝对路径",
type: "varInput",
icon: "folder_open",
options: {
dialog: {
type: "open",
options: {},
},
},
},
],
},
@@ -31,6 +37,12 @@ export const fileCommands = {
label: "文件、文件夹或软件的绝对路径",
type: "varInput",
icon: "location_on",
options: {
dialog: {
type: "open",
options: {},
},
},
},
],
},
@@ -43,6 +55,15 @@ export const fileCommands = {
label: "文件或软件的绝对路径",
type: "varInput",
icon: "folder_open",
options: {
dialog: {
type: "open",
options: {
filters: [{ extensions: ["exe", "app"] }],
properties: ["openFile", "openDirectory"],
},
},
},
},
],
},