mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
85 lines
2.8 KiB
JSON
85 lines
2.8 KiB
JSON
{
|
||
"$id": "https://houtai.baidu.com/v2/schemas/hbox.json#",
|
||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
"allOf": [
|
||
{
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/hbox.json#/definitions/common"
|
||
},
|
||
{
|
||
"additionalProperties": false,
|
||
"dependencies": {},
|
||
"patternProperties": {
|
||
"^(\\$ref|columns|className)$": {}
|
||
},
|
||
"properties": {
|
||
"$schema": {
|
||
"format": "uri",
|
||
"type": "string",
|
||
"description": "绑定 JSON 格式说明,可忽略!"
|
||
},
|
||
"type": {
|
||
"const": "hbox",
|
||
"description": "指定为 hbox 类型",
|
||
"type": "string"
|
||
}
|
||
},
|
||
"required": [
|
||
"type"
|
||
]
|
||
}
|
||
],
|
||
"definitions": {
|
||
"column": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/subRenderer"
|
||
},
|
||
{
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/grid.json#/definitions/commonColumn"
|
||
}
|
||
],
|
||
"description": "列"
|
||
},
|
||
"columns": {
|
||
"description": "列集合",
|
||
"items": {
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/hbox.json#/definitions/column"
|
||
},
|
||
"type": "array"
|
||
},
|
||
"common": {
|
||
"description": "AMis Grid 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers#hbox",
|
||
"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"
|
||
},
|
||
"columns": {
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/hbox.json#/definitions/columns",
|
||
"description": "列集合"
|
||
}
|
||
}
|
||
},
|
||
"commonColumn": {
|
||
"properties": {
|
||
"columnClassName": {
|
||
"description": "列类名"
|
||
}
|
||
},
|
||
"type": "object"
|
||
},
|
||
"test": {
|
||
"properties": {
|
||
"type": {
|
||
"const": "hbox"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"description": "AMis Grid 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers#hbox",
|
||
"type": "object"
|
||
} |