mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-10 23:53:29 +08:00
可视化编排新增代码片段功能
This commit is contained in:
@@ -23,7 +23,7 @@ export const scriptCommands = {
|
||||
value: "quickcommand.runCode",
|
||||
label: "运行脚本",
|
||||
component: "ScriptEditor",
|
||||
desc: "运行各种编程语言的代码",
|
||||
description: "运行各种编程语言的代码,需要预安装对应的执行环境",
|
||||
asyncMode: "await",
|
||||
outputs: {
|
||||
label: "运行结果",
|
||||
@@ -31,6 +31,17 @@ export const scriptCommands = {
|
||||
typeName: "字符串",
|
||||
},
|
||||
},
|
||||
{
|
||||
value: "createCodeSnippet",
|
||||
label: "新建代码片段",
|
||||
component: "ScriptEditor",
|
||||
description: "单纯将代码片段赋值到变量中,不会执行",
|
||||
outputs: {
|
||||
label: "代码片段",
|
||||
suggestName: "codeSnippet",
|
||||
typeName: "字符串",
|
||||
},
|
||||
},
|
||||
{
|
||||
value: "return",
|
||||
label: "函数返回",
|
||||
|
Reference in New Issue
Block a user