amis/schemas/hbox.json

84 lines
2.2 KiB
JSON
Raw Permalink 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/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": [
2020-05-27 14:57:40 +08:00
{
2020-08-21 15:28:22 +08:00
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/subRenderer"
2020-05-27 14:57:40 +08:00
},
{
2020-08-21 15:28:22 +08:00
"$ref": "https://houtai.baidu.com/v2/schemas/grid.json#/definitions/commonColumn"
2020-05-27 14:57:40 +08:00
}
2020-08-21 15:28:22 +08:00
],
"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": "引用页面中的定义"
2020-05-27 14:57:40 +08:00
},
2020-08-21 15:28:22 +08:00
"className": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置容器 className"
2020-05-27 14:57:40 +08:00
},
2020-08-21 15:28:22 +08:00
"columns": {
"$ref": "https://houtai.baidu.com/v2/schemas/hbox.json#/definitions/columns",
"description": "列集合"
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
"commonColumn": {
"properties": {
"columnClassName": {
"description": "列类名"
}
},
"type": "object"
},
"test": {
"properties": {
"type": {
"const": "hbox"
}
}
}
},
"description": "amis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#hbox",
"type": "object"
}