RuntimeConfig_panelSchema
idinteger必填
取值约束: >= 1
refDeviceProductinteger必填
取值约束: >= 1
refThingModelinteger必填
取值约束: >= 1
schemaVersionstring必填
取值约束: 非空
namestring必填
取值约束: 非空
schemaBody object必填
schemaVersionstring必填
取值约束: 须匹配正则表达式 ^1\.0\.0$
panelIdstring必填
取值约束: 须匹配正则表达式 ^[a-z][a-z0-9_]{1,60}$
panelVersionstring必填
取值约束: 非空
deviceProductIdinteger必填
取值约束: >= 1
thingModelVersionstring必填
取值约束: 非空
layout object必填
sections object[]必填
取值约束: >= 1
Array [
idstring必填
取值约束: 须匹配正则表达式 ^[a-z][a-z0-9_]{1,40}$
titlestring必填
取值约束: 非空 and <= 24 个字符
widgets object[]必填
取值约束: >= 1
Array [
idstring必填
取值约束: 须匹配正则表达式 ^[a-z][a-z0-9_]{1,40}$
typestring必填
取值约束: [status, switch, slider, enum, button, text]
labelstring必填
取值约束: 非空 and <= 24 个字符
binding object
kindstring必填
取值约束: [property, action]
codestring必填
取值约束: 须匹配正则表达式 ^[a-z][a-zA-Z0-9_]{1,60}$
params object[]
Array [
codestring必填
取值约束: 须匹配正则表达式 ^[a-z][a-zA-Z0-9_]{1,60}$
valuestring | number | boolean必填
]
inputs object[]
Array [
codestring必填
取值约束: 须匹配正则表达式 ^[a-z][a-zA-Z0-9_]{1,60}$
namestring必填
取值约束: 非空 and <= 24 个字符
dataTypestring必填
取值约束: [text, int, float, boolean, enum]
requiredboolean
placeholderstring
取值约束: <= 64 个字符
minnumber
maxnumber
stepnumber
取值约束: > 0
options object[]
取值约束: >= 1
Array [
labelstring必填
取值约束: 非空 and <= 24 个字符
valuestring | number | boolean必填
]
]
minnumber
maxnumber
stepnumber
取值约束: > 0
options object[]
Array [
labelstring必填
取值约束: 非空 and <= 24 个字符
valuestring | number | boolean必填
]
readonlyboolean
result object
displaystring必填
取值约束: [toast, dialog]
]
]
RuntimeConfig_panelSchema
{
"id": 0,
"refDeviceProduct": 0,
"refThingModel": 0,
"schemaVersion": "string",
"name": "string",
"schemaBody": {
"schemaVersion": "string",
"panelId": "string",
"panelVersion": "string",
"deviceProductId": 0,
"thingModelVersion": "string",
"layout": {
"sections": [
{
"id": "string",
"title": "string",
"widgets": [
{
"id": "string",
"type": "status",
"label": "string",
"binding": {
"kind": "property",
"code": "string",
"params": [
{
"code": "string",
"value": "string"
}
],
"inputs": [
{
"code": "string",
"name": "string",
"dataType": "text",
"required": true,
"placeholder": "string",
"min": 0,
"max": 0,
"step": 0,
"options": [
{
"label": "string",
"value": "string"
}
]
}
]
},
"min": 0,
"max": 0,
"step": 0,
"options": [
{
"label": "string",
"value": "string"
}
],
"readonly": true,
"result": {
"display": "toast"
}
}
]
}
]
}
}
}