2020-05-27 14:57:40 +08:00
|
|
|
{
|
2020-08-21 15:28:22 +08:00
|
|
|
"$id": "https://houtai.baidu.com/v2/schemas/mapping.json#",
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/mapping.json#/definitions/common"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"additionalProperties": false,
|
|
|
|
"dependencies": {},
|
|
|
|
"patternProperties": {
|
|
|
|
"^(\\$ref|className|map|placeholder|label|name|popOver|quickEdit|sortable|searchable|toggled|fixed)$": {}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"$schema": {
|
|
|
|
"format": "uri",
|
|
|
|
"type": "string",
|
|
|
|
"description": "绑定 JSON 格式说明,可忽略!"
|
2020-05-27 14:57:40 +08:00
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
"type": {
|
|
|
|
"description": "指定为映射展示类型",
|
|
|
|
"enum": ["mapping", "map"],
|
|
|
|
"type": "string"
|
2020-05-27 14:57:40 +08:00
|
|
|
}
|
2020-08-21 15:28:22 +08:00
|
|
|
},
|
|
|
|
"required": ["type"],
|
|
|
|
"type": "object"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"definitions": {
|
|
|
|
"common": {
|
|
|
|
"description": "amis mapping 渲染器格式说明。",
|
|
|
|
"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"
|
2020-05-27 14:57:40 +08:00
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
"map": {
|
|
|
|
"description": "当值命中左侧 Key 时,展示右侧内容,当没有命中时,默认实现 Key 为 <code>*</code>的内容",
|
|
|
|
"patternProperties": {
|
|
|
|
".*": {
|
|
|
|
"type": "string"
|
2020-05-27 14:57:40 +08:00
|
|
|
}
|
2020-08-21 15:28:22 +08:00
|
|
|
},
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"placeholder": {
|
|
|
|
"description": "占位符",
|
|
|
|
"type": "string"
|
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
|
|
|
"test": {
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"enum": ["map", "mapping"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"description": "amis mapping 渲染器格式说明。",
|
|
|
|
"type": "object"
|
|
|
|
}
|