amis/schemas/operation.json

63 lines
2.0 KiB
JSON
Raw Normal View History

2020-05-27 14:57:40 +08:00
{
"$id": "https://houtai.baidu.com/v2/schemas/operation.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/operation.json#/definitions/common"
},
{
"additionalProperties": false,
"dependencies": {},
"patternProperties": {
"^(className|buttons|placeholder|label|name|popOver|quickEdit|sortable|searchable|toggled|fixed)$": {}
},
"properties": {
"$schema": {
"format": "uri",
"type": "string",
"description": "绑定 JSON 格式说明,可忽略!"
},
"type": {
"const": "operation",
"description": "指定为状态展示类型",
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
],
"definitions": {
"common": {
"description": "AMis operation 渲染器格式说明。",
"properties": {
"buttons": {
"description": "操作按钮集合",
"items": {
"$ref": "https://houtai.baidu.com/v2/schemas/action.json#"
},
"type": "array"
},
"className": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置容器 className"
},
"placeholder": {
"description": "占位符",
"type": "string"
}
}
},
"test": {
"properties": {
"type": {
"const": "operation"
}
}
}
},
"description": "AMis operation 渲染器格式说明。",
"type": "object"
}