config.ts
904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: '请输入输出参数',
    },
  },
];