|
@@ -59,19 +59,22 @@ export const searchFormSchema: FormSchema[] = [ |
|
@@ -59,19 +59,22 @@ export const searchFormSchema: FormSchema[] = [ |
59
|
];
|
59
|
];
|
60
|
|
60
|
|
61
|
export const defaultTitle = h('div', { style: 'background:#404040' }, [
|
61
|
export const defaultTitle = h('div', { style: 'background:#404040' }, [
|
62
|
- h('h3', { style: 'color:white' }, '示例:'),
|
|
|
63
|
- h('h3', { style: 'color:white' }, '输入参数:0103040150008D3BBB'),
|
62
|
+ h('h3', { style: 'color:white' }, '示例'),
|
|
|
63
|
+ h('h3', { style: 'color:white' }, '输入参数:'),
|
|
|
64
|
+ h('h3', { style: 'color:white' }, '0103040150008D3BBB'),
|
64
|
h('h3', { style: 'color:white' }, [
|
65
|
h('h3', { style: 'color:white' }, [
|
|
|
66
|
+ h('h3', { style: 'color:white' }, '脚本内容:'),
|
65
|
h(
|
67
|
h(
|
66
|
'h3',
|
68
|
'h3',
|
67
|
{ style: 'color:white' },
|
69
|
{ style: 'color:white' },
|
68
|
- "脚本内容:out.humidity = (parseInt('0x'+params.substr(6, 4))*0.1).toFixed(2);"
|
70
|
+ "out.humidity = (parseInt('0x'+params.substr(6, 4))*0.1).toFixed(2);"
|
69
|
),
|
71
|
),
|
70
|
h(
|
72
|
h(
|
71
|
'h3',
|
73
|
'h3',
|
72
|
{ style: 'color:white' },
|
74
|
{ style: 'color:white' },
|
73
|
"out.temperature = (parseInt('0x'+params.substr(10, 4))*0.1).toFixed(2);"
|
75
|
"out.temperature = (parseInt('0x'+params.substr(10, 4))*0.1).toFixed(2);"
|
74
|
),
|
76
|
),
|
75
|
- h('h3', { style: 'color:white' }, "输出参数:{'humidity':'33.60','temperature':'14.10'}"),
|
77
|
+ h('h3', { style: 'color:white' }, '输出参数:'),
|
|
|
78
|
+ h('h3', { style: 'color:white' }, "{'humidity':'33.60','temperature':'14.10'}"),
|
76
|
]),
|
79
|
]),
|
77
|
]); |
80
|
]); |