import { FormSchema } from '/@/components/Form';

export const tcpSchemas: FormSchema[] = [
  {
    field: 'script',
    label: '转换脚本',
    component: 'Input',
    slot: 'script',
    colProps: { span: 24 },
  },
];

// 新增编辑配置
export const formSchema: FormSchema[] = [
  {
    field: 'name',
    label: '输入参数',
    colProps: { span: 24 },
    required: true,
    component: 'Input',
    componentProps: {
      maxLength: 255,
      placeholder: '请输入输入参数',
    },
  },
  {
    field: 'scriptContent',
    label: '脚本内容',
    required: true,
    component: 'Input',
    slot: 'scriptContent',
    colProps: { span: 24 },
  },
  {
    field: 'remark',
    label: '输出参数',
    colProps: { span: 24 },
    component: 'InputTextArea',
    componentProps: {
      rows: 6,
      maxLength: 255,
      placeholder: '请输入输出参数',
    },
  },
];
