index.ts
1.25 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
import { FormSchema } from '/@/components/Form';
export const modelSchemas: FormSchema[] = [
{
field: '0',
component: 'Input',
label: 'Object list',
componentProps: {
placeholder: '请输入Object list',
},
colProps: { span: 11 },
},
];
export const serverSchemas: FormSchema[] = [
{
field: '1',
component: 'InputNumber',
label: 'Short ID',
required: true,
defaultValue: 123,
colProps: { span: 8 },
},
{
field: '2',
component: 'InputNumber',
label: 'Client registration lifetime',
required: true,
defaultValue: 123,
colProps: { span: 8 },
},
];
export const settingsSchemas: FormSchema[] = [
{
field: 'deviceTelemetryTopic',
component: 'Input',
label: '筛选器',
required: true,
defaultValue: 'v1/devices/me/telemetry',
componentProps: {
placeholder: '请输入遥测数据 topic 筛选器',
},
colProps: { span: 11 },
},
];
export const deviceSchemas: FormSchema[] = [
{
field: 'deviceTelemetryTopic',
component: 'Input',
label: '筛选器',
required: true,
defaultValue: 'v1/devices/me/telemetry',
componentProps: {
placeholder: '请输入遥测数据 topic 筛选器',
},
colProps: { span: 11 },
},
];