amis/schemas/each.json

60 lines
1.9 KiB
JSON

{
"$id": "https://houtai.baidu.com/v2/schemas/each.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/each.json#/definitions/common"
},
{
"additionalProperties": false,
"dependencies": {},
"patternProperties": {
"^(\\$ref|className|name|items)$": {}
},
"properties": {
"$schema": {
"format": "uri",
"type": "string",
"description": "绑定 JSON 格式说明,可忽略!"
},
"type": {
"const": "each",
"description": "指定为each展示类型",
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
],
"definitions": {
"common": {
"description": "AMis each 渲染器格式说明。",
"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"
},
"name": {
"description": "字段名",
"type": "string"
}
}
},
"test": {
"properties": {
"type": {
"const": "each"
}
}
}
},
"description": "AMis each 渲染器格式说明。",
"type": "object"
}