2020-05-27 14:57:40 +08:00
|
|
|
{
|
2020-09-03 11:45:31 +08:00
|
|
|
"$id": "/schemas/operation.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/operation.json#/definitions/common"
|
2020-08-21 15:28:22 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"additionalProperties": false,
|
|
|
|
"dependencies": {},
|
|
|
|
"patternProperties": {
|
|
|
|
"^(className|buttons|placeholder|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": {
|
|
|
|
"const": "operation",
|
|
|
|
"description": "指定为状态展示类型",
|
|
|
|
"type": "string"
|
2020-05-27 14:57:40 +08:00
|
|
|
}
|
2020-08-21 15:28:22 +08:00
|
|
|
},
|
|
|
|
"required": ["type"],
|
|
|
|
"type": "object"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"definitions": {
|
|
|
|
"common": {
|
|
|
|
"description": "amis operation 渲染器格式说明。",
|
|
|
|
"properties": {
|
|
|
|
"buttons": {
|
|
|
|
"description": "操作按钮集合",
|
|
|
|
"items": {
|
2020-09-03 11:45:31 +08:00
|
|
|
"$ref": "/schemas/action.json#"
|
2020-08-21 15:28:22 +08:00
|
|
|
},
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"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"
|
2020-05-27 14:57:40 +08:00
|
|
|
},
|
2020-08-21 15:28:22 +08:00
|
|
|
"placeholder": {
|
|
|
|
"description": "占位符",
|
|
|
|
"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": {
|
|
|
|
"const": "operation"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"description": "amis operation 渲染器格式说明。",
|
|
|
|
"type": "object"
|
|
|
|
}
|