2020-05-27 14:57:40 +08:00
|
|
|
|
{
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"$id": "https://houtai.baidu.com/v2/schemas/container.json#",
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/container.json#/definitions/common"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"dependencies": {},
|
|
|
|
|
"patternProperties": {
|
|
|
|
|
"^(\\$ref|body|className)$": {}
|
|
|
|
|
},
|
|
|
|
|
"properties": {
|
|
|
|
|
"$schema": {
|
|
|
|
|
"format": "uri",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "绑定 JSON 格式说明,可忽略!"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"type": {
|
|
|
|
|
"const": "container",
|
|
|
|
|
"description": "指定为 container 类型",
|
|
|
|
|
"type": "string"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
}
|
2020-08-21 15:28:22 +08:00
|
|
|
|
},
|
|
|
|
|
"required": ["type"]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"definitions": {
|
|
|
|
|
"body": {
|
|
|
|
|
"description": "集合",
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"common": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"$ref": {
|
|
|
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
|
|
|
|
"description": "引用页面中的定义"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"className": {
|
|
|
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|
|
|
|
"description": "配置容器 className"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"body": {
|
|
|
|
|
"description": "内容",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"bodyClassName": {
|
|
|
|
|
"description": "body 类名",
|
|
|
|
|
"type": "string"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
}
|
2020-08-21 15:28:22 +08:00
|
|
|
|
}
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"test": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"type": {
|
|
|
|
|
"const": "container"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "amis container 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers/Types#container",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|