amis
Version:
一种MIS页面生成工具
1,965 lines (1,964 loc) • 1.56 MB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/RootSchema",
"definitions": {
"RootSchema": {
"$ref": "#/definitions/PageSchema"
},
"PageSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "page",
"description": "指定为 page 渲染器。"
},
"className": {
"$ref": "#/definitions/SchemaClassName",
"description": "配置容器 className"
},
"$ref": {
"type": "string",
"description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
},
"disabled": {
"type": "boolean",
"description": "是否禁用"
},
"disabledOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否禁用表达式"
},
"hidden": {
"type": "boolean",
"description": "是否隐藏"
},
"hiddenOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否隐藏表达式"
},
"visible": {
"type": "boolean",
"description": "是否显示"
},
"visibleOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否显示表达式"
},
"title": {
"type": "string",
"description": "页面标题"
},
"subTitle": {
"type": "string",
"description": "页面副标题"
},
"remark": {
"$ref": "#/definitions/SchemaRemark",
"description": "页面描述, 标题旁边会出现个小图标,放上去会显示这个属性配置的内容。"
},
"body": {
"$ref": "#/definitions/SchemaCollection",
"description": "内容区域"
},
"bodyClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "内容区 css 类名"
},
"aside": {
"$ref": "#/definitions/SchemaCollection",
"description": "边栏区域"
},
"asideClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "边栏区 css 类名"
},
"css": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "样式属性名及值"
},
"description": "自定义页面级别样式表"
},
"mobileCSS": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "样式属性名及值"
},
"description": "移动端下的样式表"
},
"data": {
"$ref": "#/definitions/SchemaDefaultData",
"description": "页面级别的初始数据"
},
"headerClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "配置 header 容器 className"
},
"initApi": {
"$ref": "#/definitions/SchemaApi",
"description": "页面初始化的时候,可以设置一个 API 让其取拉取,发送数据会携带当前 data 数据(包含地址栏参数),获取得数据会合并到 data 中,供组件内使用。"
},
"initFetch": {
"type": "boolean",
"description": "是否默认就拉取?"
},
"initFetchOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否默认就拉取表达式"
},
"messages": {
"$ref": "#/definitions/SchemaMessage"
},
"name": {
"$ref": "#/definitions/SchemaName"
},
"toolbar": {
"$ref": "#/definitions/SchemaCollection",
"description": "页面顶部区域,当存在 title 时在右上角显示。"
},
"toolbarClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "配置 toolbar 容器 className"
},
"definitions": {},
"interval": {
"type": "number",
"description": "配置轮询间隔,配置后 initApi 将轮询加载。"
},
"silentPolling": {
"type": "boolean",
"description": "是否要静默加载,也就是说不显示进度"
},
"stopAutoRefreshWhen": {
"$ref": "#/definitions/SchemaExpression",
"description": "配置停止轮询的条件。"
},
"showErrorMsg": {
"type": "boolean",
"description": "是否显示错误信息,默认是显示的。"
},
"cssVars": {
"description": "css 变量"
},
"regions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"aside",
"body",
"toolbar",
"header"
]
},
"description": "默认不设置自动感觉内容来决定要不要展示这些区域 如果配置了,以配置为主。"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "amis Page 渲染器。详情请见:https://baidu.gitee.io/amis/docs/components/page"
},
"SchemaClassName": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "boolean"
},
{
"not": {}
},
{
"type": "null"
},
{
"$ref": "#/definitions/SchemaExpression"
}
]
}
}
],
"description": "css类名,配置字符串,或者对象。\n\n className: \"red\"\n\n用对象配置时意味着你能跟表达式一起搭配使用,如:\n\n className: { \"red\": \"data.progress > 80\", \"blue\": \"data.progress > 60\" }"
},
"SchemaExpression": {
"type": "string",
"description": "表达式,语法 `data.xxx > 5`。"
},
"SchemaRemark": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"icon": {
"$ref": "#/definitions/SchemaIcon"
},
"tooltipClassName": {
"$ref": "#/definitions/SchemaClassName"
},
"trigger": {
"type": "array",
"items": {
"type": "string",
"enum": [
"click",
"hover",
"focus"
]
},
"description": "触发规则"
},
"title": {
"type": "string",
"description": "提示标题"
},
"content": {
"$ref": "#/definitions/SchemaTpl",
"description": "提示内容"
},
"placement": {
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
],
"description": "显示位置"
},
"rootClose": {
"type": "boolean",
"description": "点击其他内容时是否关闭弹框信息"
},
"className": {
"$ref": "#/definitions/SchemaClassName",
"description": "容器 css 类名"
},
"$ref": {
"type": "string",
"description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
},
"disabled": {
"type": "boolean",
"description": "是否禁用"
},
"disabledOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否禁用表达式"
},
"hidden": {
"type": "boolean",
"description": "是否隐藏"
},
"hiddenOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否隐藏表达式"
},
"visible": {
"type": "boolean",
"description": "是否显示"
},
"visibleOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否显示表达式"
}
},
"required": [
"content"
],
"additionalProperties": false
}
]
},
"SchemaIcon": {
"type": "string",
"description": "iconfont 里面的类名。"
},
"SchemaTpl": {
"type": "string",
"description": "支持两种语法,但是不能混着用。分别是:\n\n1. `${xxx}` 或者 `${xxx|upperCase}` 2. `<%= data.xxx %>`\n\n\n更多文档:https://baidu.gitee.io/amis/docs/concepts/template"
},
"SchemaCollection": {
"anyOf": [
{
"$ref": "#/definitions/SchemaObject"
},
{
"$ref": "#/definitions/SchemaTpl"
},
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/SchemaObject"
},
{
"$ref": "#/definitions/SchemaTpl"
}
]
}
}
]
},
"SchemaObject": {
"allOf": [
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "page",
"description": "指定为 page 渲染器。"
}
}
},
"then": {
"$ref": "#/definitions/PageSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"tpl",
"html"
],
"description": "指定为模板渲染器。\n\n文档:https://baidu.gitee.io/amis/docs/concepts/template"
}
}
},
"then": {
"$ref": "#/definitions/TplSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "remark",
"description": "指定为提示类型"
}
}
},
"then": {
"$ref": "#/definitions/RemarkSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "ajax",
"description": "指定为发送 ajax 的行为。"
}
}
},
"then": {
"$ref": "#/definitions/AjaxActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "url",
"description": "指定为打开链接"
}
}
},
"then": {
"$ref": "#/definitions/UrlActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "link",
"description": "指定为打开链接行为,跟 url 不同的时这个行为为单页模式。"
}
}
},
"then": {
"$ref": "#/definitions/LinkActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "dialog",
"description": "指定为打开弹窗"
}
}
},
"then": {
"$ref": "#/definitions/DialogActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "drawer",
"description": "指定为打开弹窗,抽出式弹窗"
}
}
},
"then": {
"$ref": "#/definitions/DrawerActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "copy",
"description": "指定为复制内容行为"
}
}
},
"then": {
"$ref": "#/definitions/CopyActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "reload",
"description": "指定为刷新目标组件。"
}
}
},
"then": {
"$ref": "#/definitions/ReloadActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"const": "email",
"description": "指定为打开邮箱行为"
}
}
},
"then": {
"$ref": "#/definitions/EmailActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"actionType": {
"type": "string",
"enum": [
"prev",
"next",
"cancel",
"close",
"submit",
"confirm",
"add",
"reset",
"reset-and-submit"
]
}
}
},
"then": {
"$ref": "#/definitions/OtherActionSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
}
}
},
"then": {
"$ref": "#/definitions/VanillaAction"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "alert",
"description": "指定为提示框类型"
}
}
},
"then": {
"$ref": "#/definitions/AlertSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "audio",
"description": "指定为音频播放器"
}
}
},
"then": {
"$ref": "#/definitions/AudioSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "avatar",
"description": "指定为用户头像控件"
}
}
},
"then": {
"$ref": "#/definitions/AvatarSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "button-group",
"description": "指定为提交按钮类型"
}
}
},
"then": {
"$ref": "#/definitions/ButtonGroupSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "button-toolbar",
"description": "指定为按钮工具集合类型"
}
}
},
"then": {
"$ref": "#/definitions/ButtonToolbarSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "card",
"description": "指定为 card 类型"
}
}
},
"then": {
"$ref": "#/definitions/CardSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "cards",
"description": "指定为 cards 类型"
}
}
},
"then": {
"$ref": "#/definitions/CardsSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "carousel",
"description": "指定为轮播图类型"
},
"thumbMode": {
"type": "string",
"enum": [
"contain",
"cover"
],
"description": "预览图模式"
}
}
},
"then": {
"$ref": "#/definitions/CarouselSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "chart",
"description": "指定为 chart 类型"
}
}
},
"then": {
"$ref": "#/definitions/ChartSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "collapse",
"description": "指定为折叠器类型"
}
}
},
"then": {
"$ref": "#/definitions/CollapseSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "color",
"description": "指定为颜色显示控件"
}
}
},
"then": {
"$ref": "#/definitions/ColorSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "container",
"description": "指定为 container 类型"
}
}
},
"then": {
"$ref": "#/definitions/ContainerSchema"
}
},
{
"if": {
"properties": {
"mode": {
"type": "string",
"description": "指定内容区的展示模式。",
"const": "cards"
},
"type": {
"type": "string",
"const": "crud",
"description": "指定为 CRUD 渲染器。"
}
}
},
"then": {
"$ref": "#/definitions/CRUDCardsSchema"
}
},
{
"if": {
"properties": {
"mode": {
"type": "string",
"description": "指定内容区的展示模式。",
"const": "list"
},
"type": {
"type": "string",
"const": "crud",
"description": "指定为 CRUD 渲染器。"
}
}
},
"then": {
"$ref": "#/definitions/CRUDListSchema"
}
},
{
"if": {
"properties": {
"mode": {
"type": "string",
"description": "指定内容区的展示模式。",
"const": "table"
},
"type": {
"type": "string",
"const": "crud",
"description": "指定为 CRUD 渲染器。"
}
}
},
"then": {
"$ref": "#/definitions/CRUDTableSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"date",
"datetime",
"time",
"static-date",
"static-datetime",
"static-time"
],
"description": "指定为日期展示类型"
}
}
},
"then": {
"$ref": "#/definitions/DateSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "dialog"
}
}
},
"then": {
"$ref": "#/definitions/DialogSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "divider"
}
}
},
"then": {
"$ref": "#/definitions/DividerSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "drawer"
}
}
},
"then": {
"$ref": "#/definitions/DrawerSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "dropdown-button",
"description": "指定为 DropDown Button 类型"
}
}
},
"then": {
"$ref": "#/definitions/DropdownButtonSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "each",
"description": "指定为each展示类型"
}
}
},
"then": {
"$ref": "#/definitions/EachSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "grid",
"description": "指定为 Grid 格子布局渲染器。"
}
}
},
"then": {
"$ref": "#/definitions/GridSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "grid-2d",
"description": "指定为 grid-2d 展示类型"
}
}
},
"then": {
"$ref": "#/definitions/Grid2DSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "hbox",
"description": "指定为each展示类型"
},
"subFormMode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置子表单项默认的展示方式。"
}
}
},
"then": {
"$ref": "#/definitions/HBoxSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "icon"
}
}
},
"then": {
"$ref": "#/definitions/IconSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "iframe"
}
}
},
"then": {
"$ref": "#/definitions/IFrameSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"image",
"static-image"
],
"description": "指定为图片展示类型"
},
"imageMode": {
"type": "string",
"enum": [
"thumb",
"original"
],
"description": "图片展示模式,默认为缩略图模式、可以配置成原图模式"
},
"thumbMode": {
"type": "string",
"enum": [
"w-full",
"h-full",
"contain",
"cover"
],
"description": "预览图模式"
}
}
},
"then": {
"$ref": "#/definitions/ImageSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"images",
"static-images"
],
"description": "指定为图片集渲染器"
},
"thumbMode": {
"type": "string",
"enum": [
"w-full",
"h-full",
"contain",
"cover"
],
"description": "预览图模式"
}
}
},
"then": {
"$ref": "#/definitions/ImagesSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"json",
"static-json"
],
"description": "指定为Json展示类型"
}
}
},
"then": {
"$ref": "#/definitions/JsonSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "link",
"description": "指定为 link 链接展示控件"
}
}
},
"then": {
"$ref": "#/definitions/LinkSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"list",
"static-list"
],
"description": "指定为 List 列表展示控件。"
}
}
},
"then": {
"$ref": "#/definitions/ListSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"map",
"mapping"
],
"description": "指定为映射展示控件"
}
}
},
"then": {
"$ref": "#/definitions/MappingSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "nav",
"description": "指定为 Nav 导航渲染器"
}
}
},
"then": {
"$ref": "#/definitions/NavSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "operation",
"description": "指定为操作栏"
}
}
},
"then": {
"$ref": "#/definitions/OperationSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "pagination"
},
"mode": {
"type": "string",
"enum": [
"simple",
"normal"
],
"description": "模式,默认显示多个分页数字,如果只想简单显示可以配置成 `simple`。"
}
}
},
"then": {
"$ref": "#/definitions/PaginationSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "pagination-wrapper",
"description": "指定为分页容器功能性渲染器"
}
}
},
"then": {
"$ref": "#/definitions/PaginationWrapperSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "panel",
"description": "指定为Panel渲染器。"
},
"subFormMode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置子表单项默认的展示方式。"
}
}
},
"then": {
"$ref": "#/definitions/PanelSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"plain",
"text"
],
"description": "指定为模板渲染器。\n\n文档:https://baidu.gitee.io/amis/docs/concepts/template"
}
}
},
"then": {
"$ref": "#/definitions/PlainSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "progress"
}
}
},
"then": {
"$ref": "#/definitions/ProgressSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"qrcode",
"qr-code"
]
}
}
},
"then": {
"$ref": "#/definitions/QRCodeSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "search-box",
"description": "指定为搜索框。\n\n文档:https://baidu.gitee.io/amis/docs/components/search-box"
}
}
},
"then": {
"$ref": "#/definitions/SearchBoxSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "service",
"description": "指定为 Service 数据拉取控件。"
}
}
},
"then": {
"$ref": "#/definitions/ServiceSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "sparkline"
}
}
},
"then": {
"$ref": "#/definitions/SparkLineSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "status",
"description": "指定为状态展示控件"
}
}
},
"then": {
"$ref": "#/definitions/StatusSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"table",
"static-table"
],
"description": "指定为表格渲染器。"
}
}
},
"then": {
"$ref": "#/definitions/TableSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "tabs"
},
"tabsMode": {
"type": "string",
"enum": [
"",
"line",
"card",
"radio",
"vertical",
"tiled"
],
"description": "展示形式"
},
"subFormMode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置子表单项默认的展示方式。"
}
}
},
"then": {
"$ref": "#/definitions/TabsSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "tasks",
"description": "指定为任务类型"
}
}
},
"then": {
"$ref": "#/definitions/TasksSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "vbox"
}
}
},
"then": {
"$ref": "#/definitions/VBoxSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "video",
"description": "指定为视频类型"
}
}
},
"then": {
"$ref": "#/definitions/VideoSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "wizard",
"description": "指定为表单向导"
},
"mode": {
"type": "string",
"enum": [
"vertical",
"horizontal"
],
"description": "展示模式"
}
}
},
"then": {
"$ref": "#/definitions/WizardSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "wrapper",
"description": "指定为 container 类型"
}
}
},
"then": {
"$ref": "#/definitions/WrapperSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "form",
"description": "指定为表单渲染器。"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置表单项默认的展示方式。"
}
}
},
"then": {
"$ref": "#/definitions/FormSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "anchor-nav",
"description": "指定为 AnchorNav 锚点导航渲染器"
}
}
},
"then": {
"$ref": "#/definitions/AnchorNavSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "steps",
"description": "指定为 Steps 步骤条渲染器"
},
"mode": {
"type": "string",
"enum": [
"horizontal",
"vertical"
],
"description": "展示模式"
}
}
},
"then": {
"$ref": "#/definitions/StepsSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "control",
"description": "表单项类型"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/FormControlSchema"
}
},
{
"if": {
"properties": {
"subFormMode": {
"type": "string",
"enum": [
"normal",
"horizontal",
"inline"
],
"description": "子表单的模式。"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"type": {
"type": "string",
"const": "input-array",
"description": "指定为数组输入框类型"
}
}
},
"then": {
"$ref": "#/definitions/ArrayControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "button-group-select",
"description": "表单项类型"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/ButtonGroupControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "chained-select",
"description": "表单项类型"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/ChainedSelectControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "checkbox",
"description": "指定为多行文本输入框"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/CheckboxControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "checkboxes",
"description": "表单项类型"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/CheckboxesControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-city",
"description": "指定为城市选择框。"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/InputCityControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-color",
"description": "指定为颜色选择框"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/InputColorControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "combo",
"description": "指定为组合输入框类型"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"subFormMode": {
"type": "string",
"enum": [
"normal",
"horizontal",
"inline"
],
"description": "子表单的模式。"
}
}
},
"then": {
"$ref": "#/definitions/ComboControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "condition-builder",
"description": "指定为"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
}
}
},
"then": {
"$ref": "#/definitions/ConditionBuilderControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-date",
"description": "指定为日期选择控件"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"borderMode": {
"type": "string",
"enum": [
"full",
"half",
"none"
],
"description": "边框模式,全边框,还是半边框,或者没边框。"
}
}
},
"then": {
"$ref": "#/definitions/DateControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-datetime",
"description": "指定为日期时间选择控件"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"borderMode": {
"type": "string",
"enum": [
"full",
"half",
"none"
],
"description": "边框模式,全边框,还是半边框,或者没边框。"
}
}
},
"then": {
"$ref": "#/definitions/DateTimeControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-time",
"description": "指定为日期时间选择控件"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"borderMode": {
"type": "string",
"enum": [
"full",
"half",
"none"
],
"description": "边框模式,全边框,还是半边框,或者没边框。"
}
}
},
"then": {
"$ref": "#/definitions/TimeControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-month",
"description": "指定为月份时间选择控件"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"borderMode": {
"type": "string",
"enum": [
"full",
"half",
"none"
],
"description": "边框模式,全边框,还是半边框,或者没边框。"
}
}
},
"then": {
"$ref": "#/definitions/MonthControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-quarter",
"description": "指定为月份时间选择控件"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"borderMode": {
"type": "string",
"enum": [
"full",
"half",
"none"
],
"description": "边框模式,全边框,还是半边框,或者没边框。"
}
}
},
"then": {
"$ref": "#/definitions/QuarterControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"const": "input-year",
"description": "指定为月份时间选择控件"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"
},
"borderMode": {
"type": "string",
"enum": [
"full",
"half",
"none"
],
"description": "边框模式,全边框,还是半边框,或者没边框。"
}
}
},
"then": {
"$ref": "#/definitions/YearControlSchema"
}
},
{
"if": {
"properties": {
"type": {
"type": "string",
"enum": [
"input-date-range",
"input-datetime-range",
"input-time-range"
],
"description": "指定为日期范围控件"
},
"mode": {
"type": "string",
"enum": [
"normal",
"inline",
"horizontal"
],
"description": "配置当前表单项展示模式"