mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:18:16 +08:00
97 lines
2.9 KiB
JSON
97 lines
2.9 KiB
JSON
{
|
||
"$id": "/schemas/panel.json#",
|
||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
"allOf": [
|
||
{
|
||
"$ref": "/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": "/schemas/page.json#/definitions/$ref",
|
||
"description": "引用页面中的定义"
|
||
},
|
||
"actions": {
|
||
"items": {
|
||
"$ref": "/schemas/action.json#"
|
||
},
|
||
"type": "array"
|
||
},
|
||
"actionsClassName": {
|
||
"$ref": "/schemas/page.json#/definitions/className",
|
||
"description": "配置 actions 容器 className"
|
||
},
|
||
"body": {
|
||
"$ref": "/schemas/page.json#/definitions/container",
|
||
"description": "内容区域"
|
||
},
|
||
"bodyClassName": {
|
||
"$ref": "/schemas/page.json#/definitions/className",
|
||
"description": "配置 Body 容器 className"
|
||
},
|
||
"className": {
|
||
"$ref": "/schemas/page.json#/definitions/className",
|
||
"description": "配置容器 className"
|
||
},
|
||
"footer": {
|
||
"$ref": "/schemas/page.json#/definitions/container",
|
||
"description": "footer 内容区域"
|
||
},
|
||
"footerClassName": {
|
||
"$ref": "/schemas/page.json#/definitions/className",
|
||
"description": "配置 footer 容器 className"
|
||
},
|
||
"header": {
|
||
"$ref": "/schemas/page.json#/definitions/container",
|
||
"description": "头部内容, 和 title 二选一。"
|
||
},
|
||
"headerClassName": {
|
||
"$ref": "/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"
|
||
}
|