amis/schemas/form/input-group.json

75 lines
2.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$id": "https://houtai.baidu.com/v2/schemas/form/input-group.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/form/input-group.json#/definitions/common"
},
{
"additionalProperties": false,
"patternProperties": {
"^(\\$ref|size|controls|name|value|placeholder|label|remark|labelRemark|desc|description|inline|mode|horizontal|className|labelClassName|inputClassName|descriptionClassName|validations|validationErrors|validateOnChange|submitOnChange|disabled|disabledOn|visible|visibleOn|hidden|hiddenOn|required)$": {}
},
"properties": {
"$schema": {
"format": "uri",
"type": "string",
"description": "绑定 JSON 格式说明,可忽略!"
},
"type": {
"const": "input-group",
"description": "指定为数字输入框"
}
},
"type": "object",
"required": [
"type"
]
}
],
"definitions": {
"common": {
"description": "输入组合框格式说明",
"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": "引用页面中的定义"
},
"size": {
"default": "full",
"description": "表单项大小可以是xs, sm, base, md, lg。",
"enum": [
"xs",
"sm",
"base",
"md",
"lg",
"full"
],
"type": "string"
},
"controls": {
"$ref": "https://houtai.baidu.com/v2/schemas/form.json#/definitions/controls",
"description": "FormItem 集合"
}
},
"type": "object"
}
]
},
"test": {
"properties": {
"type": {
"const": "input-group"
}
}
}
},
"description": "输入组合框格式说明",
"type": "object"
}