feat(web): 增加代码节点

This commit is contained in:
v-zhangjc9
2025-06-25 17:54:43 +08:00
parent 33df256863
commit 6f7f7cea67
5 changed files with 84 additions and 113 deletions

View File

@@ -8,7 +8,7 @@ import {horizontalFormOptions} from '../../../../util/amis.tsx'
export type AmisNodeType = 'normal' | 'start' | 'end'
export function outputsFormColumns(editable: boolean = false, preload?: any): Schema[] {
export function outputsFormColumns(editable: boolean = false, required: boolean = false, preload?: any): Schema[] {
return [
{
disabled: !editable,
@@ -22,6 +22,7 @@ export function outputsFormColumns(editable: boolean = false, preload?: any): Sc
...horizontalFormOptions(),
label: '参数名称',
},
required: required,
valueItems: [
{
...horizontalFormOptions(),