mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 21:49:09 +08:00
57 lines
1.8 KiB
JSON
57 lines
1.8 KiB
JSON
|
{
|
||
|
"$id": "https://houtai.baidu.com/v2/schemas/form/hidden.json#",
|
||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
|
"allOf": [
|
||
|
{
|
||
|
"$ref": "https://houtai.baidu.com/v2/schemas/form/hidden.json#/definitions/common"
|
||
|
},
|
||
|
{
|
||
|
"additionalProperties": false,
|
||
|
"patternProperties": {
|
||
|
"^(\\$ref|name|formula|value)$": {}
|
||
|
},
|
||
|
"properties": {
|
||
|
"$schema": {
|
||
|
"format": "uri",
|
||
|
"type": "string",
|
||
|
"description": "绑定 JSON 格式说明,可忽略!"
|
||
|
},
|
||
|
"type": {
|
||
|
"const": "hidden",
|
||
|
"description": "指定为隐藏域"
|
||
|
}
|
||
|
},
|
||
|
"required": [
|
||
|
"type"
|
||
|
],
|
||
|
"type": "object"
|
||
|
}
|
||
|
],
|
||
|
"definitions": {
|
||
|
"common": {
|
||
|
"description": "隐藏域格式说明",
|
||
|
"properties": {
|
||
|
"$ref": {
|
||
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
||
|
"description": "引用页面中的定义"
|
||
|
},
|
||
|
"name": {
|
||
|
"$ref": "https://houtai.baidu.com/v2/schemas/form.json#/definitions/name",
|
||
|
"description": "字段名,表单提交时的 key"
|
||
|
},
|
||
|
"value": {
|
||
|
"description": "默认值,不支持变量。"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"test": {
|
||
|
"properties": {
|
||
|
"type": {
|
||
|
"const": "hidden"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"description": "隐藏域格式说明",
|
||
|
"type": "object"
|
||
|
}
|