Showing
1 changed file
with
7 additions
and
4 deletions
... | ... | @@ -59,19 +59,22 @@ export const searchFormSchema: FormSchema[] = [ |
59 | 59 | ]; |
60 | 60 | |
61 | 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 | 65 | h('h3', { style: 'color:white' }, [ |
66 | + h('h3', { style: 'color:white' }, '脚本内容:'), | |
65 | 67 | h( |
66 | 68 | 'h3', |
67 | 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 | 72 | h( |
71 | 73 | 'h3', |
72 | 74 | { style: 'color:white' }, |
73 | 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 | ]); | ... | ... |