amis/schemas/form/panel.json
2020-05-27 14:57:40 +08:00

92 lines
3.4 KiB
JSON

{
"$id": "https://houtai.baidu.com/v2/schemas/form/panel.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/form/panel.json#/definitions/common"
},
{
"additionalProperties": false,
"patternProperties": {
"^(\\$ref|bodyClassName|className|affixFooter|body|header|title|tabs|actions|footer|visible|visibleOn|hidden|hiddenOn)$": {}
},
"properties": {
"$schema": {
"format": "uri",
"type": "string",
"description": "绑定 JSON 格式说明,可忽略!"
},
"type": {
"const": "panel",
"description": "指定为面板类型"
}
},
"required": [
"type"
],
"type": "object"
}
],
"definitions": {
"common": {
"description": "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"
},
"body": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
"title": "页面内容区域"
},
"className": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置容器 className"
},
"bodyClassName": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置body容器 className"
},
"footer": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
"description": "Footer 区域"
},
"header": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
"title": "顶部内容区域,跟 title 二选一"
},
"tabs": {
"description": "tabs集合",
"items": {
"$ref": "https://houtai.baidu.com/v2/schemas/form/tabs.json#/definitions/tab"
},
"type": "array"
},
"title": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/string",
"description": "Panel 标题"
},
"affixFooter": {
"description": "固定底部",
"type": "boolean"
}
},
"type": "object"
},
"test": {
"properties": {
"type": {
"const": "panel"
}
}
}
},
"description": "Panel 格式说明",
"type": "object"
}