编排初步实现条件判断

This commit is contained in:
fofolee
2024-12-31 15:54:55 +08:00
parent b532630ab9
commit e59b04ad5c
6 changed files with 287 additions and 18 deletions

View File

@@ -0,0 +1,12 @@
export const controlCommands = {
label: "流程控制",
icon: "call_split",
commands: [
{
value: "condition",
label: "条件判断",
component: "ConditionalJudgment",
isControlFlow: true,
},
],
};

View File

@@ -5,6 +5,7 @@ import { notifyCommands } from "./notifyCommands";
import { textProcessingCommands } from "./textProcessingCommands";
import { otherCommands } from "./otherCommands";
import { keyCommands } from "./keyCommands";
import { controlCommands } from "./controlCommands";
export const commandCategories = [
fileCommands,
@@ -12,6 +13,7 @@ export const commandCategories = [
systemCommands,
notifyCommands,
textProcessingCommands,
controlCommands,
otherCommands,
keyCommands,
];