重构命令输出变量系统:新增OutputEditor组件,支持更灵活的变量配置和回调函数创建

This commit is contained in:
fofolee
2025-01-26 01:36:20 +08:00
parent 0f020d394a
commit 208a6a08d9
21 changed files with 551 additions and 320 deletions

View File

@@ -47,15 +47,11 @@ export const utoolsCommands = {
value: "utools.isDarkColors",
label: "是否深色模式",
icon: "dark_mode",
outputVariable: "isDark",
saveOutput: true,
},
{
value: "utools.getUser",
label: "获取用户信息",
icon: "person",
outputVariable: "{avatar,nickname,type}",
saveOutput: true,
},
{
value: "utools.redirect",
@@ -163,20 +159,14 @@ export const utoolsCommands = {
value: "utools.getWindowType",
label: "获取当前窗口类型",
icon: "window",
outputVariable: "windowType",
saveOutput: true,
},
{
value: "utools.getNativeId",
label: "获取本地ID",
outputVariable: "nativeId",
saveOutput: true,
},
{
value: "utools.getAppVersion",
label: "获取uTools版本",
outputVariable: "appVersion",
saveOutput: true,
},
],
};