feat: can run code node

This commit is contained in:
Joel
2024-03-12 17:58:51 +08:00
parent a5147a382d
commit 30ea3cb702
6 changed files with 81 additions and 35 deletions

View File

@ -39,7 +39,7 @@ const Panel: FC<NodePanelProps<CodeNodeType>> = ({
handleAddVariable,
handleCodeChange,
handleCodeLanguageChange,
handleOutputVarListChange,
handleVarsChange,
handleAddOutputVariable,
// single run
isShowSingleRun,
@ -91,8 +91,8 @@ const Panel: FC<NodePanelProps<CodeNodeType>> = ({
>
<OutputVarList
readonly={readOnly}
list={inputs.outputs}
onChange={handleOutputVarListChange}
outputs={inputs.outputs}
onChange={handleVarsChange}
/>
</Field>
</div>