mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
60 lines
2.0 KiB
JSON
60 lines
2.0 KiB
JSON
{
|
|
"$id": "https://houtai.baidu.com/v2/schemas/json.json#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/json.json#/definitions/common"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"dependencies": {},
|
|
"patternProperties": {
|
|
"^(\\$ref|className|title|description|defaultImage|src|label|name|popOver|quickEdit|sortable|searchable|toggled|fixed)$": {}
|
|
},
|
|
"properties": {
|
|
"$schema": {
|
|
"format": "uri",
|
|
"type": "string",
|
|
"description": "绑定 JSON 格式说明,可忽略!"
|
|
},
|
|
"type": {
|
|
"const": "json",
|
|
"description": "指定为Json展示类型",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
],
|
|
"definitions": {
|
|
"common": {
|
|
"description": "AMis Json 渲染器格式说明。",
|
|
"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"
|
|
},
|
|
"levelExpand": {
|
|
"type": "number",
|
|
"description": "默认展开的级别"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"const": "json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "AMis Json 渲染器格式说明。",
|
|
"type": "object"
|
|
} |