amis
Version:
一种MIS页面生成工具
1,958 lines • 1.82 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 类名"
},
"data": {
"$ref": "#/definitions/SchemaDefaultData"
},
"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 变量"
}
},
"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": {
"anyOf": [
{
"$ref": "#/definitions/PageSchema"
},
{
"$ref": "#/definitions/TplSchema"
},
{
"$ref": "#/definitions/RemarkSchema"
},
{
"$ref": "#/definitions/ActionSchema"
},
{
"$ref": "#/definitions/AlertSchema"
},
{
"$ref": "#/definitions/AudioSchema"
},
{
"$ref": "#/definitions/AvatarSchema"
},
{
"$ref": "#/definitions/ButtonGroupSchema"
},
{
"$ref": "#/definitions/ButtonToolbarSchema"
},
{
"$ref": "#/definitions/CardSchema"
},
{
"$ref": "#/definitions/CardsSchema"
},
{
"$ref": "#/definitions/CarouselSchema"
},
{
"$ref": "#/definitions/ChartSchema"
},
{
"$ref": "#/definitions/CollapseSchema"
},
{
"$ref": "#/definitions/ColorSchema"
},
{
"$ref": "#/definitions/ContainerSchema"
},
{
"$ref": "#/definitions/CRUDSchema"
},
{
"$ref": "#/definitions/DateSchema"
},
{
"$ref": "#/definitions/DialogSchema"
},
{
"$ref": "#/definitions/DividerSchema"
},
{
"$ref": "#/definitions/DrawerSchema"
},
{
"$ref": "#/definitions/DropdownButtonSchema"
},
{
"$ref": "#/definitions/EachSchema"
},
{
"$ref": "#/definitions/GridSchema"
},
{
"$ref": "#/definitions/Grid2DSchema"
},
{
"$ref": "#/definitions/HBoxSchema"
},
{
"$ref": "#/definitions/IconSchema"
},
{
"$ref": "#/definitions/IFrameSchema"
},
{
"$ref": "#/definitions/ImageSchema"
},
{
"$ref": "#/definitions/ImagesSchema"
},
{
"$ref": "#/definitions/JsonSchema"
},
{
"$ref": "#/definitions/LinkSchema"
},
{
"$ref": "#/definitions/ListSchema"
},
{
"$ref": "#/definitions/MappingSchema"
},
{
"$ref": "#/definitions/NavSchema"
},
{
"$ref": "#/definitions/OperationSchema"
},
{
"$ref": "#/definitions/PaginationSchema"
},
{
"$ref": "#/definitions/PaginationWrapperSchema"
},
{
"$ref": "#/definitions/PanelSchema"
},
{
"$ref": "#/definitions/PlainSchema"
},
{
"$ref": "#/definitions/ProgressSchema"
},
{
"$ref": "#/definitions/QRCodeSchema"
},
{
"$ref": "#/definitions/SearchBoxSchema"
},
{
"$ref": "#/definitions/ServiceSchema"
},
{
"$ref": "#/definitions/SparkLineSchema"
},
{
"$ref": "#/definitions/StatusSchema"
},
{
"$ref": "#/definitions/SwitchSchema"
},
{
"$ref": "#/definitions/TableSchema"
},
{
"$ref": "#/definitions/TabsSchema"
},
{
"$ref": "#/definitions/TasksSchema"
},
{
"$ref": "#/definitions/VBoxSchema"
},
{
"$ref": "#/definitions/VideoSchema"
},
{
"$ref": "#/definitions/WizardSchema"
},
{
"$ref": "#/definitions/WrapperSchema"
},
{
"$ref": "#/definitions/FormSchema"
},
{
"$ref": "#/definitions/AnchorNavSchema"
},
{
"$ref": "#/definitions/StepsSchema"
}
]
},
"TplSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"tpl",
"html"
],
"description": "指定为模板渲染器。\n\n文档:https://baidu.gitee.io/amis/docs/concepts/template"
},
"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": "是否显示表达式"
},
"tpl": {
"$ref": "#/definitions/SchemaTpl"
},
"html": {
"$ref": "#/definitions/SchemaTpl"
},
"text": {
"$ref": "#/definitions/SchemaTpl"
},
"raw": {
"type": "string"
},
"inline": {
"type": "boolean",
"description": "是否内联显示?"
},
"style": {
"type": "object",
"description": "自定义样式"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "tpl 渲染器"
},
"RemarkSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "remark",
"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": "是否显示表达式"
},
"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": "点击其他内容时是否关闭弹框信息"
}
},
"required": [
"content",
"type"
],
"additionalProperties": false,
"description": "提示渲染器,默认会显示个小图标,鼠标放上来的时候显示配置的内容。"
},
"ActionSchema": {
"anyOf": [
{
"$ref": "#/definitions/AjaxActionSchema"
},
{
"$ref": "#/definitions/UrlActionSchema"
},
{
"$ref": "#/definitions/LinkActionSchema"
},
{
"$ref": "#/definitions/DialogActionSchema"
},
{
"$ref": "#/definitions/DrawerActionSchema"
},
{
"$ref": "#/definitions/CopyActionSchema"
},
{
"$ref": "#/definitions/ReloadActionSchema"
},
{
"$ref": "#/definitions/EmailActionSchema"
},
{
"$ref": "#/definitions/OtherActionSchema"
},
{
"$ref": "#/definitions/VanillaAction"
}
],
"description": "按钮动作渲染器。 文档:https://baidu.gitee.io/amis/docs/components/action"
},
"AjaxActionSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"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": "是否显示表达式"
},
"block": {
"type": "boolean",
"description": "是否为块状展示,默认为内联。"
},
"disabledTip": {
"type": "string",
"description": "禁用时的文案提示。"
},
"icon": {
"$ref": "#/definitions/SchemaIcon",
"description": "按钮图标, iconfont 的类名"
},
"iconClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "icon 上的css 类名"
},
"label": {
"type": "string",
"description": "按钮文字"
},
"level": {
"type": "string",
"enum": [
"info",
"success",
"warning",
"danger",
"link",
"primary",
"dark"
],
"description": "按钮样式"
},
"primary": {
"type": "boolean"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg"
],
"description": "按钮大小"
},
"tooltip": {
"$ref": "#/definitions/SchemaTooltip"
},
"tooltipPlacement": {
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
]
},
"confirmText": {
"type": "string",
"description": "提示文字,配置了操作前会要求用户确认。"
},
"required": {
"type": "array",
"items": {
"type": "string"
},
"description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
},
"activeLevel": {
"type": "string",
"description": "激活状态时的样式"
},
"activeClassName": {
"type": "string",
"description": "激活状态时的类名"
},
"close": {
"type": [
"boolean",
"string"
],
"description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
},
"requireSelected": {
"type": "boolean",
"description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
},
"mergeData": {
"type": "boolean",
"description": "是否将弹框中数据 merge 到父级作用域。"
},
"target": {
"type": "string",
"description": "可以指定让谁来触发这个动作。"
},
"countDown": {
"type": "number",
"description": "点击后的禁止倒计时(秒)"
},
"countDownTpl": {
"type": "string",
"description": "倒计时文字自定义"
},
"actionType": {
"type": "string",
"const": "ajax",
"description": "指定为发送 ajax 的行为。"
},
"api": {
"$ref": "#/definitions/SchemaApi",
"description": "配置 ajax 发送地址"
},
"feedback": {
"$ref": "#/definitions/FeedbackDialog"
},
"reload": {
"$ref": "#/definitions/SchemaReload"
},
"redirect": {
"type": "string"
},
"ignoreConfirm": {
"type": "boolean"
}
},
"required": [
"actionType",
"api",
"type"
],
"additionalProperties": false
},
"SchemaTooltip": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "标题"
},
"content": {
"type": "string",
"description": "内容"
}
},
"required": [
"content"
],
"additionalProperties": false
}
]
},
"SchemaApi": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/SchemaApiObject"
}
]
},
"SchemaApiObject": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"get",
"post",
"put",
"delete",
"patch"
],
"description": "API 发送类型"
},
"url": {
"$ref": "#/definitions/SchemaUrlPath",
"description": "API 发送目标地址"
},
"data": {
"type": "object",
"description": "用来控制携带数据. 当key 为 `&` 值为 `$$` 时, 将所有原始数据打平设置到 data 中. 当值为 $$ 将所有原始数据赋值到对应的 key 中. 当值为 $ 打头时, 将变量值设置到 key 中."
},
"responseData": {
"type": "object",
"description": "用来做接口返回的数据映射。"
},
"attachDataToQuery": {
"type": "boolean",
"description": "如果 method 为 get 的接口,设置了 data 信息。 默认 data 会自动附带在 query 里面发送给后端。\n\n如果想通过 body 发送给后端,那么请把这个配置成 false。\n\n但是,浏览器还不支持啊,设置了只是摆设。除非服务端支持 method-override"
},
"dataType": {
"type": "string",
"enum": [
"json",
"form-data",
"form"
],
"description": "发送体的格式"
},
"responseType": {
"type": "string",
"const": "blob",
"description": "如果是文件下载接口,请配置这个。"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"number"
]
},
"description": "携带 headers,用法和 data 一样,可以用变量。"
},
"sendOn": {
"$ref": "#/definitions/SchemaExpression",
"description": "设置发送条件"
},
"replaceData": {
"type": "boolean",
"description": "默认都是追加模式,如果想完全替换把这个配置成 true"
},
"autoRefresh": {
"type": "boolean",
"description": "是否自动刷新,当 url 中的取值结果变化时,自动刷新数据。",
"default": true
},
"trackExpression": {
"type": "string",
"description": "当开启自动刷新的时候,默认是 api 的 url 来自动跟踪变量变化的。 如果你希望监控 url 外的变量,请配置 traceExpression。"
},
"cache": {
"type": "number",
"description": "如果设置了值,同一个接口,相同参数,指定的时间(单位:ms)内请求将直接走缓存。"
},
"qsOptions": {
"type": "object",
"properties": {
"arrayFormat": {
"type": "string",
"enum": [
"indices",
"brackets",
"repeat",
"comma"
]
},
"indices": {
"type": "boolean"
},
"allowDots": {
"type": "boolean"
}
},
"additionalProperties": false,
"description": "qs 配置项"
}
},
"required": [
"url"
],
"additionalProperties": false
},
"SchemaUrlPath": {
"$ref": "#/definitions/SchemaTokenizeableString"
},
"SchemaTokenizeableString": {
"type": "string"
},
"FeedbackDialog": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"$ref": "#/definitions/ActionSchema"
},
"description": "默认不用填写,自动会创建确认和取消按钮。"
},
"body": {
"$ref": "#/definitions/SchemaCollection",
"description": "内容区域"
},
"bodyClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "配置 Body 容器 className"
},
"closeOnEsc": {
"type": "boolean",
"description": "是否支持按 ESC 关闭 Dialog"
},
"name": {
"$ref": "#/definitions/SchemaName"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg",
"xl",
"full"
],
"description": "Dialog 大小"
},
"title": {
"$ref": "#/definitions/SchemaCollection",
"description": "请通过配置 title 设置标题"
},
"header": {
"$ref": "#/definitions/SchemaCollection"
},
"headerClassName": {
"$ref": "#/definitions/SchemaClassName"
},
"footer": {
"$ref": "#/definitions/SchemaCollection"
},
"confirm": {
"type": "boolean",
"description": "影响自动生成的按钮,如果自己配置了按钮这个配置无效。"
},
"showCloseButton": {
"type": "boolean",
"description": "是否显示关闭按钮"
},
"showErrorMsg": {
"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": {
"type": "string",
"description": "可以用来配置 feedback 的出现条件"
},
"skipRestOnCancel": {
"type": "boolean",
"description": "feedback 弹框取消是否中断后续操作"
},
"skipRestOnConfirm": {
"type": "boolean",
"description": "feedback 弹框确认是否中断后续操作"
}
},
"additionalProperties": false
},
"SchemaName": {
"type": "string",
"description": "组件名字,这个名字可以用来定位,用于组件通信"
},
"SchemaReload": {
"type": "string",
"description": "配置刷新动作,这个动作通常在完成渲染器本省的固定动作后出发。\n\n一般用来配置目标组件的 name 属性。多个目标可以用逗号隔开。\n\n当目标是 windows 时表示刷新整个页面。\n\n刷新目标的同时还支持传递参数如: `foo?a=${a}&b=${b},boo?c=${c}`"
},
"UrlActionSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"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": "是否显示表达式"
},
"block": {
"type": "boolean",
"description": "是否为块状展示,默认为内联。"
},
"disabledTip": {
"type": "string",
"description": "禁用时的文案提示。"
},
"icon": {
"$ref": "#/definitions/SchemaIcon",
"description": "按钮图标, iconfont 的类名"
},
"iconClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "icon 上的css 类名"
},
"label": {
"type": "string",
"description": "按钮文字"
},
"level": {
"type": "string",
"enum": [
"info",
"success",
"warning",
"danger",
"link",
"primary",
"dark"
],
"description": "按钮样式"
},
"primary": {
"type": "boolean"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg"
],
"description": "按钮大小"
},
"tooltip": {
"$ref": "#/definitions/SchemaTooltip"
},
"tooltipPlacement": {
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
]
},
"confirmText": {
"type": "string",
"description": "提示文字,配置了操作前会要求用户确认。"
},
"required": {
"type": "array",
"items": {
"type": "string"
},
"description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
},
"activeLevel": {
"type": "string",
"description": "激活状态时的样式"
},
"activeClassName": {
"type": "string",
"description": "激活状态时的类名"
},
"close": {
"type": [
"boolean",
"string"
],
"description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
},
"requireSelected": {
"type": "boolean",
"description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
},
"mergeData": {
"type": "boolean",
"description": "是否将弹框中数据 merge 到父级作用域。"
},
"target": {
"type": "string",
"description": "可以指定让谁来触发这个动作。"
},
"countDown": {
"type": "number",
"description": "点击后的禁止倒计时(秒)"
},
"countDownTpl": {
"type": "string",
"description": "倒计时文字自定义"
},
"actionType": {
"type": "string",
"const": "url",
"description": "指定为打开链接"
},
"blank": {
"type": "boolean",
"description": "是否新窗口打开"
},
"url": {
"type": "string",
"description": "打开的目标地址"
}
},
"required": [
"actionType",
"type",
"url"
],
"additionalProperties": false
},
"LinkActionSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"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": "是否显示表达式"
},
"block": {
"type": "boolean",
"description": "是否为块状展示,默认为内联。"
},
"disabledTip": {
"type": "string",
"description": "禁用时的文案提示。"
},
"icon": {
"$ref": "#/definitions/SchemaIcon",
"description": "按钮图标, iconfont 的类名"
},
"iconClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "icon 上的css 类名"
},
"label": {
"type": "string",
"description": "按钮文字"
},
"level": {
"type": "string",
"enum": [
"info",
"success",
"warning",
"danger",
"link",
"primary",
"dark"
],
"description": "按钮样式"
},
"primary": {
"type": "boolean"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg"
],
"description": "按钮大小"
},
"tooltip": {
"$ref": "#/definitions/SchemaTooltip"
},
"tooltipPlacement": {
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
]
},
"confirmText": {
"type": "string",
"description": "提示文字,配置了操作前会要求用户确认。"
},
"required": {
"type": "array",
"items": {
"type": "string"
},
"description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
},
"activeLevel": {
"type": "string",
"description": "激活状态时的样式"
},
"activeClassName": {
"type": "string",
"description": "激活状态时的类名"
},
"close": {
"type": [
"boolean",
"string"
],
"description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
},
"requireSelected": {
"type": "boolean",
"description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
},
"mergeData": {
"type": "boolean",
"description": "是否将弹框中数据 merge 到父级作用域。"
},
"target": {
"type": "string",
"description": "可以指定让谁来触发这个动作。"
},
"countDown": {
"type": "number",
"description": "点击后的禁止倒计时(秒)"
},
"countDownTpl": {
"type": "string",
"description": "倒计时文字自定义"
},
"actionType": {
"type": "string",
"const": "link",
"description": "指定为打开链接行为,跟 url 不同的时这个行为为单页模式。"
},
"link": {
"type": "string",
"description": "跳转到哪?支持配置相对路径。"
}
},
"required": [
"actionType",
"link",
"type"
],
"additionalProperties": false
},
"DialogActionSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"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": "是否显示表达式"
},
"block": {
"type": "boolean",
"description": "是否为块状展示,默认为内联。"
},
"disabledTip": {
"type": "string",
"description": "禁用时的文案提示。"
},
"icon": {
"$ref": "#/definitions/SchemaIcon",
"description": "按钮图标, iconfont 的类名"
},
"iconClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "icon 上的css 类名"
},
"label": {
"type": "string",
"description": "按钮文字"
},
"level": {
"type": "string",
"enum": [
"info",
"success",
"warning",
"danger",
"link",
"primary",
"dark"
],
"description": "按钮样式"
},
"primary": {
"type": "boolean"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg"
],
"description": "按钮大小"
},
"tooltip": {
"$ref": "#/definitions/SchemaTooltip"
},
"tooltipPlacement": {
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
]
},
"confirmText": {
"type": "string",
"description": "提示文字,配置了操作前会要求用户确认。"
},
"required": {
"type": "array",
"items": {
"type": "string"
},
"description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
},
"activeLevel": {
"type": "string",
"description": "激活状态时的样式"
},
"activeClassName": {
"type": "string",
"description": "激活状态时的类名"
},
"close": {
"type": [
"boolean",
"string"
],
"description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
},
"requireSelected": {
"type": "boolean",
"description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
},
"mergeData": {
"type": "boolean",
"description": "是否将弹框中数据 merge 到父级作用域。"
},
"target": {
"type": "string",
"description": "可以指定让谁来触发这个动作。"
},
"countDown": {
"type": "number",
"description": "点击后的禁止倒计时(秒)"
},
"countDownTpl": {
"type": "string",
"description": "倒计时文字自定义"
},
"actionType": {
"type": "string",
"const": "dialog",
"description": "指定为打开弹窗"
},
"dialog": {
"$ref": "#/definitions/DialogSchemaBase",
"description": "弹框详情 文档:https://baidu.gitee.io/amis/docs/components/dialog"
},
"nextCondition": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否有下一个的表达式,正常可以不用配置,如果想要刷掉某些数据可以配置这个。"
},
"reload": {
"$ref": "#/definitions/SchemaReload"
},
"redirect": {
"type": "string"
}
},
"required": [
"actionType",
"dialog",
"type"
],
"additionalProperties": false
},
"DialogSchemaBase": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"$ref": "#/definitions/ActionSchema"
},
"description": "默认不用填写,自动会创建确认和取消按钮。"
},
"body": {
"$ref": "#/definitions/SchemaCollection",
"description": "内容区域"
},
"bodyClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "配置 Body 容器 className"
},
"closeOnEsc": {
"type": "boolean",
"description": "是否支持按 ESC 关闭 Dialog"
},
"name": {
"$ref": "#/definitions/SchemaName"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg",
"xl",
"full"
],
"description": "Dialog 大小"
},
"title": {
"$ref": "#/definitions/SchemaCollection",
"description": "请通过配置 title 设置标题"
},
"header": {
"$ref": "#/definitions/SchemaCollection"
},
"headerClassName": {
"$ref": "#/definitions/SchemaClassName"
},
"footer": {
"$ref": "#/definitions/SchemaCollection"
},
"confirm": {
"type": "boolean",
"description": "影响自动生成的按钮,如果自己配置了按钮这个配置无效。"
},
"showCloseButton": {
"type": "boolean",
"description": "是否显示关闭按钮"
},
"showErrorMsg": {
"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": "是否显示表达式"
}
},
"additionalProperties": false
},
"DrawerActionSchema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"description": "指定按钮类型,支持 button、submit或者reset三种类型。"
},
"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": "是否显示表达式"
},
"block": {
"type": "boolean",
"description": "是否为块状展示,默认为内联。"
},
"disabledTip": {
"type": "string",
"description": "禁用时的文案提示。"
},
"icon": {
"$ref": "#/definitions/SchemaIcon",
"description": "按钮图标, iconfont 的类名"
},
"iconClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "icon 上的css 类名"
},
"label": {
"type": "string",
"description": "按钮文字"
},
"level": {
"type": "string",
"enum": [
"info",
"success",
"warning",
"danger",
"link",
"primary",
"dark"
],
"description": "按钮样式"
},
"primary": {
"type": "boolean"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg"
],
"description": "按钮大小"
},
"tooltip": {
"$ref": "#/definitions/SchemaTooltip"
},
"tooltipPlacement": {
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
]
},
"confirmText": {
"type": "string",
"description": "提示文字,配置了操作前会要求用户确认。"
},
"required": {
"type": "array",
"items": {
"type": "string"
},
"description": "如果按钮在form中,配置此属性会要求用户把指定的字段通过验证后才会触发行为。"
},
"activeLevel": {
"type": "string",
"description": "激活状态时的样式"
},
"activeClassName": {
"type": "string",
"description": "激活状态时的类名"
},
"close": {
"type": [
"boolean",
"string"
],
"description": "如果按钮在弹框中,可以配置这个动作完成后是否关闭弹窗,或者指定关闭目标弹框。"
},
"requireSelected": {
"type": "boolean",
"description": "当按钮时批量操作按钮时,默认必须有勾选元素才能可点击,如果此属性配置成 false,则没有点选成员也能点击。"
},
"mergeData": {
"type": "boolean",
"description": "是否将弹框中数据 merge 到父级作用域。"
},
"target": {
"type": "string",
"description": "可以指定让谁来触发这个动作。"
},
"countDown": {
"type": "number",
"description": "点击后的禁止倒计时(秒)"
},
"countDownTpl": {
"type": "string",
"description": "倒计时文字自定义"
},
"actionType": {
"type": "string",
"const": "drawer",
"description": "指定为打开弹窗,抽出式弹窗"
},
"drawer": {
"$ref": "#/definitions/DrawerSchemaBase",
"description": "抽出式弹框详情 文档:https://baidu.gitee.io/amis/docs/components/drawer"
},
"nextCondition": {
"$ref": "#/definitions/SchemaExpression",
"description": "是否有下一个的表达式,正常可以不用配置,如果想要刷掉某些数据可以配置这个。"
},
"reload": {
"$ref": "#/definitions/SchemaReload"
},
"redirect": {
"type": "string"
}
},
"required": [
"actionType",
"drawer",
"type"
],
"additionalProperties": false
},
"DrawerSchemaBase": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"$ref": "#/definitions/ActionSchema"
},
"description": "默认不用填写,自动会创建确认和取消按钮。"
},
"body": {
"$ref": "#/definitions/SchemaCollection",
"description": "内容区域"
},
"bodyClassName": {
"$ref": "#/definitions/SchemaClassName",
"description": "配置 Body 容器 className"
},
"closeOnEsc": {
"type": "boolean",
"description": "是否支持按 ESC 关闭 Dialog"
},
"name": {
"$ref": "#/definitions/SchemaName"
},
"size": {
"type": "string",
"enum": [
"xs",
"sm",
"md",
"lg",
"full"
],
"description": "Dialog 大小"
},
"title": {
"$ref": "#/definitions/SchemaCollection",
"description": "请通过配置 title 设置标题"
},
"position": {
"type": "string",
"enum": [
"left",
"right",
"top",
"bottom"
],
"description": "从什么位置弹出"
},
"header": {
"$ref": "#/definitions/SchemaCollection",
"description": "头部"
},
"footer": {
"$ref": "#/definitions/SchemaCollection",
"description": "底部"
},
"confirm": {
"type": "boolean",
"description": "影响自动生成的按钮,如果自己配置了按钮这个配置无效。"
},
"resizable": {
"type": "boolean",
"description": "是否可以拖动弹窗大小"
},
"overlay": {
"type": "boolean",
"description": "是否显示蒙层"
},
"closeOnOutside": {
"type": "boolean",
"description": "点击外部的时候是否关闭弹框。"
},
"showErrorMsg": {
"type": "boolean",
"description": "是否显示错误信息"
},
"className": {
"$ref": "#/definitions/SchemaClassName",
"description": "容器 css 类名"
},
"$ref": {
"type": "string",
"description": "配合 definitions 一起使用,可以实现无限循