basicConfiguration.ts
1.15 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
57
58
59
60
61
62
import { FormSchema } from '/@/components/Form';
export const basicSchema: FormSchema[] = [
{
field: 'name',
label: '组件名称',
component: 'Input',
},
{
field: 'remake',
label: '组件备注',
component: 'InputTextArea',
},
];
export const dataSourceSchema: FormSchema[] = [
{
field: 'org',
component: 'TreeSelect',
label: '组织',
colProps: { span: 6 },
componentProps: {
placeholder: '请选择组织',
},
},
{
field: 'device',
component: 'Select',
label: '设备',
colProps: { span: 5 },
componentProps: {
placeholder: '请选择设备',
},
},
{
field: 'attr',
component: 'Select',
label: '属性',
colProps: { span: 5 },
componentProps: {
placeholder: '请选择属性',
},
},
{
field: 'deviceRename',
component: 'Input',
label: '设备',
colProps: { span: 4 },
componentProps: {
placeholder: '设备重命名',
},
},
{
field: 'attrRename',
component: 'Input',
label: '属性',
colProps: { span: 4 },
componentProps: {
placeholder: '属性重命名',
},
},
];