mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
84 lines
2.7 KiB
JSON
84 lines
2.7 KiB
JSON
|
{
|
|||
|
"$id": "https://houtai.baidu.com/v2/schemas/iframe.json#",
|
|||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|||
|
"allOf": [
|
|||
|
{
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/iframe.json#/definitions/common"
|
|||
|
},
|
|||
|
{
|
|||
|
"additionalProperties": false,
|
|||
|
"dependencies": {},
|
|||
|
"patternProperties": {
|
|||
|
"^(\\$ref|src|style|className|bodyClassName|body|size)$": {}
|
|||
|
},
|
|||
|
"properties": {
|
|||
|
"$schema": {
|
|||
|
"format": "uri",
|
|||
|
"type": "string",
|
|||
|
"description": "绑定 JSON 格式说明,可忽略!"
|
|||
|
},
|
|||
|
"type": {
|
|||
|
"const": "iframe",
|
|||
|
"description": "指定为iframe类型",
|
|||
|
"type": "string"
|
|||
|
}
|
|||
|
},
|
|||
|
"required": [
|
|||
|
"type"
|
|||
|
]
|
|||
|
}
|
|||
|
],
|
|||
|
"definitions": {
|
|||
|
"common": {
|
|||
|
"description": "AMis iframe 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers#iframe",
|
|||
|
"properties": {
|
|||
|
"$ref": {
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
|||
|
"description": "引用页面中的定义"
|
|||
|
},
|
|||
|
"src": {
|
|||
|
"type": "string",
|
|||
|
"description": "iframe 地址"
|
|||
|
},
|
|||
|
"width": {
|
|||
|
"oneOf": [
|
|||
|
{
|
|||
|
"type": "string"
|
|||
|
},
|
|||
|
{
|
|||
|
"type": "number"
|
|||
|
}
|
|||
|
],
|
|||
|
"description": "iframe 的宽度"
|
|||
|
},
|
|||
|
"height": {
|
|||
|
"oneOf": [
|
|||
|
{
|
|||
|
"type": "string"
|
|||
|
},
|
|||
|
{
|
|||
|
"type": "number"
|
|||
|
}
|
|||
|
],
|
|||
|
"description": "iframe 的高度"
|
|||
|
},
|
|||
|
"style": {
|
|||
|
"description": "样式表"
|
|||
|
},
|
|||
|
"className": {
|
|||
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|||
|
"description": "配置容器 className"
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"test": {
|
|||
|
"properties": {
|
|||
|
"type": {
|
|||
|
"const": "iframe"
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"description": "AMis iframe 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers#iframe",
|
|||
|
"type": "object"
|
|||
|
}
|