mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 11:28:30 +08:00
80 lines
2.2 KiB
JSON
80 lines
2.2 KiB
JSON
{
|
||
"$id": "/schemas/collapse.json#",
|
||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
"allOf": [
|
||
{
|
||
"$ref": "/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": "/schemas/page.json#/definitions/$ref",
|
||
"description": "引用页面中的定义"
|
||
},
|
||
"body": {
|
||
"$ref": "/schemas/page.json#/definitions/container",
|
||
"description": "内容区域"
|
||
},
|
||
"bodyClassName": {
|
||
"$ref": "/schemas/page.json#/definitions/className",
|
||
"description": "配置 Body 容器 className"
|
||
},
|
||
"className": {
|
||
"$ref": "/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"
|
||
}
|