amis/schemas/collapse.json

81 lines
3.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$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 格式说明,可忽略!"
},
"type": {
"const": "collapse",
"description": "指定为折叠器类型",
"type": "string"
}
},
"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"
},
"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"
}
}
},
"test": {
"properties": {
"type": {
"const": "collapse"
}
}
}
},
"description": "AMis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper",
"type": "object"
}