amis/schemas/form/rich-text.json
2020-05-27 14:57:40 +08:00

66 lines
2.5 KiB
JSON

{
"$id": "https://houtai.baidu.com/v2/schemas/form/rich-text.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/form/rich-text.json#/definitions/common"
},
{
"additionalProperties": false,
"patternProperties": {
"^(\\$ref|receiver|options|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": "rich-text",
"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": "引用页面中的定义"
},
"options": {
"description": "请参考 https://www.froala.com/wysiwyg-editor/docs/options 的配置说明。",
"type": "object"
},
"reciever": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/api",
"description": "用来负责图片存储"
}
},
"type": "object"
}
]
},
"test": {
"properties": {
"type": {
"const": "rich-text"
}
}
}
},
"description": "富文本框格式说明",
"type": "object"
}