amis/schemas/panel.json

97 lines
3.2 KiB
JSON
Raw Permalink Normal View History

2020-05-27 14:57:40 +08:00
{
2020-08-21 15:28:22 +08:00
"$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 格式说明,可忽略!"
2020-05-27 14:57:40 +08:00
},
2020-08-21 15:28:22 +08:00
"type": {
"const": "panel",
"description": "指定为 Panel 类型",
"type": "string"
2020-05-27 14:57:40 +08:00
}
2020-08-21 15:28:22 +08:00
},
"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"
2020-05-27 14:57:40 +08:00
},
2020-08-21 15:28:22 +08:00
"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"
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": "panel"
}
}
}
},
"description": "amis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel",
"title": "Panel",
"type": "object"
}