{ "$id": "https://houtai.baidu.com/v2/schemas/plain.json#", "$schema": "http://json-schema.org/draft-07/schema#", "allOf": [ { "$ref": "https://houtai.baidu.com/v2/schemas/plain.json#/definitions/common" }, { "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 格式说明,可忽略!" }, "type": { "description": "指定为纯文本类型的渲染器,不支持 html 标签。", "enum": ["plain", "text"], "type": "string" } }, "required": ["type"] } ], "definitions": { "common": { "description": "amis plain 渲染器格式说明。", "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" }, "inline": { "description": "是否为 inline 模式", "type": "boolean" }, "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" } } }, "test": { "properties": { "type": { "enum": ["plain", "text"] } } } }, "description": "amis plain 渲染器格式说明。", "type": "object" }