mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
93 lines
3.2 KiB
JSON
93 lines
3.2 KiB
JSON
|
{
|
|||
|
"$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": "引用页面中的定义"
|
|||
|
},
|
|||
|
"className": {
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|||
|
"description": "配置容器 className"
|
|||
|
},
|
|||
|
"header": {
|
|||
|
"description": "头部内容设置",
|
|||
|
"type": "object"
|
|||
|
},
|
|||
|
"header": {
|
|||
|
"properties": {
|
|||
|
"className": {
|
|||
|
"description": "类名",
|
|||
|
"type": "string"
|
|||
|
},
|
|||
|
"title": {
|
|||
|
"description": "标题",
|
|||
|
"type": "string"
|
|||
|
},
|
|||
|
"subTitle": {
|
|||
|
"description": "副标题",
|
|||
|
"type": "string"
|
|||
|
},
|
|||
|
"avatar": {
|
|||
|
"description": "图片",
|
|||
|
"type": "string"
|
|||
|
},
|
|||
|
"avatarClassName": {
|
|||
|
"description": "图片类名",
|
|||
|
"type": "string"
|
|||
|
},
|
|||
|
"highlight": {
|
|||
|
"description": "是否点亮",
|
|||
|
"type": "boolean"
|
|||
|
}
|
|||
|
},
|
|||
|
"type": "object"
|
|||
|
},
|
|||
|
"actions": {
|
|||
|
"description": "按钮",
|
|||
|
"type": "array"
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"test": {
|
|||
|
"properties": {
|
|||
|
"type": {
|
|||
|
"const": "card"
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"description": "AMis Card 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers/Card",
|
|||
|
"type": "object"
|
|||
|
}
|