config.ts
1.03 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
55
56
import { BasicColumn, FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
{
title: '创建时间',
dataIndex: 'createdTime',
width: 200,
},
{
title: '名称',
dataIndex: 'name',
width: 200,
},
{
title: '说明',
dataIndex: 'description',
width: 120,
},
{
title: '默认',
dataIndex: 'default',
width: 200,
},
];
export const formSchema: FormSchema[] = [
{
field: 'name',
label: '名称',
colProps: { span: 24 },
required: true,
component: 'Input',
componentProps: {
placeholder: '名称',
},
},
{
field: 'isolatedTbRuleEngine',
label: '隔离板芯容器的加工',
component: 'Checkbox',
},
{
field: 'isolatedTbCore',
label: '在独立的ThinngsBoard规则引擎中处理',
component: 'Checkbox',
},
{
field: 'description',
label: '说明',
colProps: { span: 24 },
component: 'InputTextArea',
componentProps: {
placeholder: '请输入说明',
},
},
];