mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-19 18:25:44 +08:00
补全条件分支、异常处理、条件循环、遍历对象四个控制流程
This commit is contained in:
@@ -11,7 +11,7 @@ export const controlCommands = {
|
||||
},
|
||||
{
|
||||
value: "loop",
|
||||
label: "循环",
|
||||
label: "循环执行",
|
||||
component: "LoopControl",
|
||||
isControlFlow: true,
|
||||
commandChain: ["loop", "end"],
|
||||
@@ -23,5 +23,33 @@ export const controlCommands = {
|
||||
isControlFlow: true,
|
||||
commandChain: ["forEach", "end"],
|
||||
},
|
||||
{
|
||||
value: "forIn",
|
||||
label: "遍历对象",
|
||||
component: "ForInControl",
|
||||
isControlFlow: true,
|
||||
commandChain: ["forIn", "end"],
|
||||
},
|
||||
{
|
||||
value: "while",
|
||||
label: "条件循环",
|
||||
component: "WhileControl",
|
||||
isControlFlow: true,
|
||||
commandChain: ["while", "end"],
|
||||
},
|
||||
{
|
||||
value: "switch",
|
||||
label: "条件分支",
|
||||
component: "SwitchControl",
|
||||
isControlFlow: true,
|
||||
commandChain: ["switch", "case", "end"],
|
||||
},
|
||||
{
|
||||
value: "tryCatch",
|
||||
label: "异常处理",
|
||||
component: "TryCatchControl",
|
||||
isControlFlow: true,
|
||||
commandChain: ["try", "catch", "end"],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user