config.ts
1.12 KB
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
46
47
48
49
50
51
52
53
54
import { FormSchema } from '/@/components/Form';
export const tcpSchemas: FormSchema[] = [
{
field: 'authScriptId',
label: '鉴权脚本',
component: 'Input',
slot: 'authScriptId',
colProps: { span: 24 },
required: true,
},
{
field: 'upScriptId',
label: '上行脚本',
component: 'Input',
slot: 'upScriptId',
colProps: { span: 24 },
required: true,
},
];
// 新增编辑配置
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: '请输入输出参数',
},
},
];