mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
81 lines
3.0 KiB
JSON
81 lines
3.0 KiB
JSON
|
{
|
|||
|
"$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"
|
|||
|
}
|