forked from p96170835/amis
75 lines
2.8 KiB
JSON
75 lines
2.8 KiB
JSON
{
|
||
"$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"
|
||
} |