mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
71 lines
2.4 KiB
JSON
71 lines
2.4 KiB
JSON
|
{
|
|||
|
"$id": "https://houtai.baidu.com/v2/schemas/wrapper.json#",
|
|||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|||
|
"allOf": [
|
|||
|
{
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/wrapper.json#/definitions/common"
|
|||
|
},
|
|||
|
{
|
|||
|
"additionalProperties": false,
|
|||
|
"dependencies": {},
|
|||
|
"patternProperties": {
|
|||
|
"^(\\$ref|className|bodyClassName|body|size|visibleOn|hiddenOn|visible|hidden)$": {}
|
|||
|
},
|
|||
|
"properties": {
|
|||
|
"$schema": {
|
|||
|
"format": "uri",
|
|||
|
"type": "string",
|
|||
|
"description": "绑定 JSON 格式说明,可忽略!"
|
|||
|
},
|
|||
|
"type": {
|
|||
|
"const": "wrapper",
|
|||
|
"description": "指定为容器类型",
|
|||
|
"type": "string"
|
|||
|
}
|
|||
|
},
|
|||
|
"required": [
|
|||
|
"type"
|
|||
|
]
|
|||
|
}
|
|||
|
],
|
|||
|
"definitions": {
|
|||
|
"common": {
|
|||
|
"description": "AMis Wrapper 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers/Wrapper",
|
|||
|
"properties": {
|
|||
|
"$ref": {
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
|||
|
"description": "引用页面中的定义"
|
|||
|
},
|
|||
|
"body": {
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
|
|||
|
"description": "内容区域"
|
|||
|
},
|
|||
|
"className": {
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|||
|
"description": "配置容器 className",
|
|||
|
"default": "bg-white"
|
|||
|
},
|
|||
|
"size": {
|
|||
|
"description": "容器内边距大小",
|
|||
|
"enum": [
|
|||
|
"xs",
|
|||
|
"sm",
|
|||
|
"md",
|
|||
|
"lg",
|
|||
|
"none",
|
|||
|
""
|
|||
|
]
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"test": {
|
|||
|
"properties": {
|
|||
|
"type": {
|
|||
|
"const": "wrapper"
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"description": "AMis Wrapper 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers/Wrapper",
|
|||
|
"type": "object"
|
|||
|
}
|