mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
75 lines
2.7 KiB
JSON
75 lines
2.7 KiB
JSON
{
|
|
"$id": "https://houtai.baidu.com/v2/schemas/form/number.json#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/form/number.json#/definitions/common"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^(\\$ref|min|step|max|precision|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": "number",
|
|
"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": "引用页面中的定义"
|
|
},
|
|
"max": {
|
|
"description": "最大值",
|
|
"type": "number"
|
|
},
|
|
"min": {
|
|
"description": "最小值",
|
|
"type": "number"
|
|
},
|
|
"step": {
|
|
"default": 1,
|
|
"description": "步长",
|
|
"type": "number"
|
|
},
|
|
"precision": {
|
|
"description": "精度",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"const": "number"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "数字输入框格式说明",
|
|
"type": "object"
|
|
} |