improve previous variables

This commit is contained in:
Yoan.liu
2025-05-19 18:15:04 +08:00
parent b8ab077b57
commit 05d43f38ce
2 changed files with 37 additions and 7 deletions

View File

@@ -187,6 +187,29 @@ export type WorkflowNodeIOValueSelector = {
name: string;
};
export const workflowNodeIOOptions = (node: WorkflowNode, io: WorkflowNodeIO) => {
switch (io.type) {
case "certificate":
return [
{
label: "是否有效",
value: "valid",
},
{
label: "剩余有效天数",
value: "valid",
},
];
default:
return [
{
label: `${node.name} - ${io.label}`,
value: `${node.id}#${io.name}`,
},
];
}
};
// #endregion
// #region Condition expression