amis/schemas/plain.json

72 lines
2.1 KiB
JSON
Raw Normal View History

2020-05-27 14:57:40 +08:00
{
2020-09-03 11:45:31 +08:00
"$id": "/schemas/plain.json#",
2020-08-21 15:28:22 +08:00
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
2020-09-03 11:45:31 +08:00
"$ref": "/schemas/plain.json#/definitions/common"
2020-08-21 15:28:22 +08:00
},
{
"additionalProperties": false,
"dependencies": {},
"patternProperties": {
"^(\\$ref|className|text|tpl|inline|wrapperComponent|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": "指定为纯文本类型的渲染器,不支持 html 标签。",
"enum": ["plain", "text"],
"type": "string"
2020-05-27 14:57:40 +08:00
}
2020-08-21 15:28:22 +08:00
},
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "amis plain 渲染器格式说明。",
"properties": {
"$ref": {
2020-09-03 11:45:31 +08:00
"$ref": "/schemas/page.json#/definitions/$ref",
2020-08-21 15:28:22 +08:00
"description": "引用页面中的定义"
},
"className": {
2020-09-03 11:45:31 +08:00
"$ref": "/schemas/page.json#/definitions/className",
2020-08-21 15:28:22 +08:00
"description": "配置容器 className"
},
"inline": {
"description": "是否为 inline 模式",
"type": "boolean"
2020-05-27 14:57:40 +08:00
},
2020-08-21 15:28:22 +08:00
"text": {
"description": "不支持 html 标签。",
"title": "文本",
"type": "string"
},
"tpl": {
"description": "支持模板, 可通过 $xxx 或者 ${xxx} 取值,或者直接用 lodash.template 模板引擎。详情: https://baidu.github.io/amis/docs/renderers#tpl",
"title": "模板",
"type": "string"
},
"wrapperComponent": {
"description": "外层用什么标签?默认根据 inline来定内嵌用 span非内联用 div",
"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": ["plain", "text"]
}
}
}
},
"description": "amis plain 渲染器格式说明。",
"type": "object"
}