forked from p96170835/amis
70 lines
2.5 KiB
JSON
70 lines
2.5 KiB
JSON
{
|
|
"$id": "https://houtai.baidu.com/v2/schemas/form/checkbox.json#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/form/checkbox.json#/definitions/common"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^(\\$ref|trueValue|falseValue|option|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": "checkbox",
|
|
"description": "指定为勾选框"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"type"
|
|
]
|
|
}
|
|
],
|
|
"definitions": {
|
|
"common": {
|
|
"description": "Checkbox 勾选框格式说明",
|
|
"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": "引用页面中的定义"
|
|
},
|
|
"falseValue": {
|
|
"default": false,
|
|
"description": "未勾选值"
|
|
},
|
|
"option": {
|
|
"description": "选项说明",
|
|
"type": "string"
|
|
},
|
|
"trueValue": {
|
|
"default": true,
|
|
"description": "勾选值"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"const": "checkbox"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "Checkbox 勾选框格式说明",
|
|
"type": "object"
|
|
} |