amis/schemas/hbox.json

84 lines
2.2 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/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"
}