forked from p96170835/amis
107 lines
4.1 KiB
JSON
107 lines
4.1 KiB
JSON
{
|
||
"$id": "https://houtai.baidu.com/v2/schemas/form/reset.json#",
|
||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
"allOf": [
|
||
{
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/form/reset.json#/definitions/common"
|
||
},
|
||
{
|
||
"additionalProperties": false,
|
||
"patternProperties": {
|
||
"^(\\$ref|icon|size|level|iconOnly|action|tooltip|tooltipPlacement|disabledTip|actionType|api|target|reload|url|link|dialog|drawer|content|feedback|confirmText|blank|nextCondition|name|value|placeholder|label|remark|labelRemark|desc|description|className|inputClassName|labelClassName|descriptionClassName|disabled|disabledOn|visible|visibleOn|hidden|hiddenOn|required)$": {}
|
||
},
|
||
"properties": {
|
||
"$schema": {
|
||
"format": "uri",
|
||
"type": "string",
|
||
"description": "绑定 JSON 格式说明,可忽略!"
|
||
},
|
||
"type": {
|
||
"const": "reset",
|
||
"description": "指定为重置按钮类型"
|
||
}
|
||
},
|
||
"required": [
|
||
"type"
|
||
],
|
||
"type": "object"
|
||
}
|
||
],
|
||
"definitions": {
|
||
"common": {
|
||
"description": "Reset 按钮格式说明",
|
||
"allOf": [
|
||
{
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/form.json#/definitions/item"
|
||
},
|
||
{
|
||
"properties": {
|
||
"$ref": {
|
||
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
||
"description": "引用页面中的定义"
|
||
},
|
||
"icon": {
|
||
"description": "按钮图标,请查看 fontAwesome http://fontawesome.io/icons/",
|
||
"type": "string"
|
||
},
|
||
"label": {
|
||
"description": "按钮名字",
|
||
"type": "string"
|
||
},
|
||
"level": {
|
||
"description": "按钮级别",
|
||
"enum": [
|
||
"info",
|
||
"success",
|
||
"warning",
|
||
"danger",
|
||
"link",
|
||
"primary"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"size": {
|
||
"description": "按钮大小",
|
||
"enum": [
|
||
"xs",
|
||
"sm",
|
||
"md",
|
||
"lg"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"tooltip": {
|
||
"description": "按钮提示文字,hover 时显示",
|
||
"type": "string"
|
||
},
|
||
"tooltipPlacement": {
|
||
"default": "top",
|
||
"description": "按钮提示文字显示的位置",
|
||
"enum": [
|
||
"left",
|
||
"top",
|
||
"right",
|
||
"bottom"
|
||
],
|
||
"type": "string"
|
||
},
|
||
"disabledTip": {
|
||
"description": "禁用时按钮提示文字,hover 时显示",
|
||
"type": "string"
|
||
}
|
||
},
|
||
"type": "object"
|
||
}
|
||
]
|
||
},
|
||
"test": {
|
||
"properties": {
|
||
"type": {
|
||
"const": "reset"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"description": "Reset 按钮格式说明",
|
||
"type": "object"
|
||
} |