amis/schemas/collapse.json

80 lines
2.4 KiB
JSON
Raw 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/collapse.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/collapse.json#/definitions/common"
},
{
"additionalProperties": false,
"dependencies": {},
"patternProperties": {
"^(\\$ref|title|collapsable|collapsed|body|bodyClassName|className|headingClassName)$": {}
},
"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": "collapse",
"description": "指定为折叠器类型",
"type": "string"
2020-05-27 14:57:40 +08:00
}
2020-08-21 15:28:22 +08:00
},
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "amis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper",
"properties": {
"$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
"description": "引用页面中的定义"
},
"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",
"default": "bg-white wrapper",
"description": "配置容器 className"
2020-05-27 14:57:40 +08:00
},
2020-08-21 15:28:22 +08:00
"collapsable": {
"description": "是否可折叠",
"type": "boolean"
},
"collapsed": {
"description": "默认是否折叠",
"type": "boolean"
},
"headingClassName": {
"default": "font-thin b-b b-light text-lg p-b-xs",
"description": "标题 CSS 类名",
"type": "string"
},
"title": {
"description": "标题",
"type": "string"
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": "collapse"
}
}
}
},
"description": "amis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper",
"type": "object"
}