mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 19:38:16 +08:00
197 lines
7.4 KiB
JSON
197 lines
7.4 KiB
JSON
{
|
|
"$id": "https://houtai.baidu.com/v2/schemas/form/editor.json#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/form/editor.json#/definitions/common"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^(\\$ref|language|size|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": {
|
|
"description": "指定为编辑器类型",
|
|
"enum": [
|
|
"editor",
|
|
"bat-editor",
|
|
"c-editor",
|
|
"coffeescript-editor",
|
|
"cpp-editor",
|
|
"csharp-editor",
|
|
"css-editor",
|
|
"dockerfile-editor",
|
|
"fsharp-editor",
|
|
"go-editor",
|
|
"handlebars-editor",
|
|
"html-editor",
|
|
"ini-editor",
|
|
"java-editor",
|
|
"javascript-editor",
|
|
"json-editor",
|
|
"less-editor",
|
|
"lua-editor",
|
|
"markdown-editor",
|
|
"msdax-editor",
|
|
"objective-c-editor",
|
|
"php-editor",
|
|
"plaintext-editor",
|
|
"postiats-editor",
|
|
"powershell-editor",
|
|
"pug-editor",
|
|
"python-editor",
|
|
"r-editor",
|
|
"razor-editor",
|
|
"ruby-editor",
|
|
"sb-editor",
|
|
"scss-editor",
|
|
"sol-editor",
|
|
"sql-editor",
|
|
"swift-editor",
|
|
"typescript-editor",
|
|
"vb-editor",
|
|
"xml-editor",
|
|
"yaml-editor",
|
|
"js-editor"
|
|
]
|
|
}
|
|
},
|
|
"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": "引用页面中的定义"
|
|
},
|
|
"language": {
|
|
"const": [
|
|
"bat",
|
|
"c",
|
|
"coffeescript",
|
|
"cpp",
|
|
"csharp",
|
|
"css",
|
|
"dockerfile",
|
|
"fsharp",
|
|
"go",
|
|
"handlebars",
|
|
"html",
|
|
"ini",
|
|
"java",
|
|
"javascript",
|
|
"json",
|
|
"less",
|
|
"lua",
|
|
"markdown",
|
|
"msdax",
|
|
"objective-c",
|
|
"php",
|
|
"plaintext",
|
|
"postiats",
|
|
"powershell",
|
|
"pug",
|
|
"python",
|
|
"r",
|
|
"razor",
|
|
"ruby",
|
|
"sb",
|
|
"scss",
|
|
"sol",
|
|
"sql",
|
|
"swift",
|
|
"typescript",
|
|
"vb",
|
|
"xml",
|
|
"yaml"
|
|
],
|
|
"default": "javascript",
|
|
"description": "语言类型",
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"default": "sm",
|
|
"description": "设置编辑器的大小",
|
|
"enum": [
|
|
"sm",
|
|
"md",
|
|
"lg",
|
|
"xl",
|
|
"xxl"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"editor",
|
|
"bat-editor",
|
|
"c-editor",
|
|
"coffeescript-editor",
|
|
"cpp-editor",
|
|
"csharp-editor",
|
|
"css-editor",
|
|
"dockerfile-editor",
|
|
"fsharp-editor",
|
|
"go-editor",
|
|
"handlebars-editor",
|
|
"html-editor",
|
|
"ini-editor",
|
|
"java-editor",
|
|
"javascript-editor",
|
|
"json-editor",
|
|
"less-editor",
|
|
"lua-editor",
|
|
"markdown-editor",
|
|
"msdax-editor",
|
|
"objective-c-editor",
|
|
"php-editor",
|
|
"plaintext-editor",
|
|
"postiats-editor",
|
|
"powershell-editor",
|
|
"pug-editor",
|
|
"python-editor",
|
|
"r-editor",
|
|
"razor-editor",
|
|
"ruby-editor",
|
|
"sb-editor",
|
|
"scss-editor",
|
|
"sol-editor",
|
|
"sql-editor",
|
|
"swift-editor",
|
|
"typescript-editor",
|
|
"vb-editor",
|
|
"xml-editor",
|
|
"yaml-editor",
|
|
"js-editor"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "编辑器格式说明",
|
|
"type": "object"
|
|
} |