2020-05-27 14:57:40 +08:00
|
|
|
|
{
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"$id": "https://houtai.baidu.com/v2/schemas/card.json#",
|
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
|
|
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/card.json#/definitions/common"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"additionalProperties": false,
|
|
|
|
|
"dependencies": {},
|
|
|
|
|
"patternProperties": {
|
|
|
|
|
"^(\\$ref|name|className|header|body|bodyClassName|actions)$": {}
|
|
|
|
|
},
|
|
|
|
|
"properties": {
|
|
|
|
|
"$schema": {
|
|
|
|
|
"format": "uri",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"description": "绑定 JSON 格式说明,可忽略!"
|
|
|
|
|
},
|
|
|
|
|
"type": {
|
|
|
|
|
"const": "card",
|
|
|
|
|
"description": "指定为 card 类型",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["type"],
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"definitions": {
|
|
|
|
|
"common": {
|
|
|
|
|
"description": "amis Card 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers/Card",
|
|
|
|
|
"properties": {
|
|
|
|
|
"$ref": {
|
|
|
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
|
|
|
|
"description": "引用页面中的定义"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"className": {
|
|
|
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|
|
|
|
"description": "配置容器 className"
|
|
|
|
|
},
|
|
|
|
|
"header": {
|
|
|
|
|
"description": "头部内容设置",
|
|
|
|
|
"type": "object"
|
|
|
|
|
},
|
|
|
|
|
"header": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"className": {
|
|
|
|
|
"description": "类名",
|
|
|
|
|
"type": "string"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"title": {
|
|
|
|
|
"description": "标题",
|
|
|
|
|
"type": "string"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"subTitle": {
|
|
|
|
|
"description": "副标题",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"avatar": {
|
|
|
|
|
"description": "图片",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"avatarClassName": {
|
|
|
|
|
"description": "图片类名",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"highlight": {
|
|
|
|
|
"description": "是否点亮",
|
|
|
|
|
"type": "boolean"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
}
|
2020-08-21 15:28:22 +08:00
|
|
|
|
},
|
|
|
|
|
"type": "object"
|
2020-05-27 14:57:40 +08:00
|
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
|
"actions": {
|
|
|
|
|
"description": "按钮",
|
|
|
|
|
"type": "array"
|
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": "card"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": "amis Card 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers/Card",
|
|
|
|
|
"type": "object"
|
|
|
|
|
}
|