amis2/schemas/panel.json
2020-08-21 15:28:22 +08:00

97 lines
3.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$id": "https://houtai.baidu.com/v2/schemas/panel.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/panel.json#/definitions/common"
},
{
"additionalProperties": false,
"dependencies": {},
"patternProperties": {
"^(\\$ref|className|affixFooter|bodyClassName|body|title|headerClassName|header|footer|footerClassName|actionsClassName|actions)$": {}
},
"properties": {
"$schema": {
"format": "uri",
"type": "string",
"description": "绑定 JSON 格式说明,可忽略!"
},
"type": {
"const": "panel",
"description": "指定为 Panel 类型",
"type": "string"
}
},
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "amis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel",
"properties": {
"$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
"description": "引用页面中的定义"
},
"actions": {
"items": {
"$ref": "https://houtai.baidu.com/v2/schemas/action.json#"
},
"type": "array"
},
"actionsClassName": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置 actions 容器 className"
},
"body": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
"description": "内容区域"
},
"bodyClassName": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置 Body 容器 className"
},
"className": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置容器 className"
},
"footer": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
"description": "footer 内容区域"
},
"footerClassName": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置 footer 容器 className"
},
"header": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
"description": "头部内容, 和 title 二选一。"
},
"headerClassName": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置 header 容器 className"
},
"title": {
"description": "Panel 标题",
"type": "string"
},
"affixFooter": {
"description": "固定底部",
"type": "boolean"
}
}
},
"test": {
"properties": {
"type": {
"const": "panel"
}
}
}
},
"description": "amis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel",
"title": "Panel",
"type": "object"
}