mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
64 lines
2.2 KiB
JSON
64 lines
2.2 KiB
JSON
{
|
|
"$id": "https://houtai.baidu.com/v2/schemas/form/button-toolbar.json#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/form/button-toolbar.json#/definitions/common"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^(\\$ref|buttons|name|value|placeholder|label|remark|labelRemark|desc|description|inline|mode|horizontal|className|inputClassName|labelClassName|descriptionClassName|visible|visibleOn|hidden|hiddenOn|required)$": {}
|
|
},
|
|
"properties": {
|
|
"$schema": {
|
|
"format": "uri",
|
|
"type": "string",
|
|
"description": "绑定 JSON 格式说明,可忽略!"
|
|
},
|
|
"type": {
|
|
"const": "button-toolbar",
|
|
"description": "指定为按钮工具栏"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
],
|
|
"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": "引用页面中的定义"
|
|
},
|
|
"buttons": {
|
|
"items": {
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/action.json#"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"const": "button-toolbar"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "按钮工具栏格式说明",
|
|
"type": "object"
|
|
} |