amis/schemas/progress.json

74 lines
1.9 KiB
JSON
Raw Normal View History

2020-05-27 14:57:40 +08:00
{
2020-09-03 11:45:31 +08:00
"$id": "/schemas/progress.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/progress.json#/definitions/common"
2020-08-21 15:28:22 +08:00
},
{
"additionalProperties": false,
"dependencies": {},
"patternProperties": {
"^(\\$ref|className|showLabel|map|progressClassName|progressBarClassName|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": "progress",
"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 progress 渲染器格式说明。",
"properties": {
"$ref": {
2020-09-03 11:45:31 +08:00
"$ref": "/schemas/page.json#/definitions/$ref",
2020-08-21 15:28:22 +08:00
"description": "引用页面中的定义"
},
"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"
},
"map": {
"description": "配置不通的值段,用不通的样式提示用户",
"items": {
"type": "string"
},
"type": "array"
2020-05-27 14:57:40 +08:00
},
2020-08-21 15:28:22 +08:00
"progressBarClassName": {
"description": "进度条 CSS 类名",
"type": "string"
},
"progressClassName": {
"description": "进度外层 CSS 类名",
"type": "string"
},
"showLabel": {
"description": "是否显示文字",
"type": "boolean"
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": "progress"
}
}
}
},
"description": "amis progress 渲染器格式说明。",
"type": "object"
}