74 lines
2.0 KiB
JSON
74 lines
2.0 KiB
JSON
{
|
|
"$id": "https://houtai.baidu.com/v2/schemas/progress.json#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/progress.json#/definitions/common"
|
|
},
|
|
{
|
|
"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 格式说明,可忽略!"
|
|
},
|
|
"type": {
|
|
"const": "progress",
|
|
"description": "指定为图片展示类型",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["type"],
|
|
"type": "object"
|
|
}
|
|
],
|
|
"definitions": {
|
|
"common": {
|
|
"description": "amis progress 渲染器格式说明。",
|
|
"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"
|
|
},
|
|
"map": {
|
|
"description": "配置不通的值段,用不通的样式提示用户",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"progressBarClassName": {
|
|
"description": "进度条 CSS 类名",
|
|
"type": "string"
|
|
},
|
|
"progressClassName": {
|
|
"description": "进度外层 CSS 类名",
|
|
"type": "string"
|
|
},
|
|
"showLabel": {
|
|
"description": "是否显示文字",
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"const": "progress"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "amis progress 渲染器格式说明。",
|
|
"type": "object"
|
|
}
|