{ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/PageSchema", "definitions": { "PageSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "page", "description": "指定为 page 渲染器。" }, "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": "边栏区域" }, "asideResizor": { "type": "boolean", "description": "边栏是否允许拖动" }, "asideSticky": { "type": "boolean", "description": "边栏内容是否粘住,即不跟随滚动。", "default": true }, "asidePosition": { "type": "string", "enum": [ "left", "right" ], "description": "边栏位置", "default": "left" }, "asideMinWidth": { "type": "number", "description": "边栏最小宽度" }, "asideMaxWidth": { "type": "number", "description": "边栏最小宽度" }, "asideClassName": { "$ref": "#/definitions/SchemaClassName", "description": "边栏区 css 类名" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "配置容器 className" }, "css": { "type": "object", "additionalProperties": { "type": "object" }, "description": "自定义页面级别样式表" }, "mobileCSS": { "type": "object", "additionalProperties": { "type": "object" }, "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": "默认不设置自动感觉内容来决定要不要展示这些区域 如果配置了,以配置为主。" }, "style": { "type": "object", "description": "自定义样式" }, "pullRefresh": { "type": "object", "properties": { "disabled": { "type": "boolean" }, "pullingText": { "type": "string" }, "loosingText": { "type": "string" } }, "additionalProperties": false, "description": "下拉刷新配置" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "page" }, "testid": true, "title": true, "subTitle": true, "remark": true, "body": true, "bodyClassName": true, "aside": true, "asideResizor": true, "asideSticky": true, "asidePosition": true, "asideMinWidth": true, "asideMaxWidth": true, "asideClassName": true, "css": true, "mobileCSS": true, "data": true, "headerClassName": true, "initApi": true, "initFetch": true, "initFetchOn": true, "messages": true, "name": true, "toolbar": true, "toolbarClassName": true, "definitions": true, "interval": true, "silentPolling": true, "stopAutoRefreshWhen": true, "showErrorMsg": true, "cssVars": true, "regions": true, "pullRefresh": true }, "required": [ "type" ], "description": "amis Page 渲染器。详情请见:https://aisuda.bce.baidu.com/amis/zh-CN/components/page 一个页面只允许有一个 Page 渲染器。" }, "SchemaRemark": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseRemarkSchema" } ] }, "BaseRemarkSchema": { "allOf": [ { "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": "点击其他内容时是否关闭弹框信息" }, "shape": { "type": "string", "enum": [ "circle", "square" ], "description": "icon的形状" } }, "required": [ "content" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "label": true, "icon": true, "tooltipClassName": true, "trigger": true, "title": true, "content": true, "placement": true, "rootClose": true, "shape": true }, "required": [ "content" ], "description": "提示渲染器,默认会显示个小图标,鼠标放上来的时候显示配置的内容。" }, "SchemaIcon": { "type": "string", "description": "iconfont 里面的类名。" }, "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": "表达式,语法 `${xxx > 5}`。" }, "SchemaTpl": { "type": "string", "description": "支持两种语法,但是不能混着用。分别是:\n\n1. `${xxx}` 或者 `${xxx|upperCase}` 2. `<%= data.xxx %>`\n\n\n更多文档:https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/template" }, "BaseSchema": { "allOf": [ { "type": "object", "properties": { "type": { "$ref": "#/definitions/SchemaType" }, "testid": { "type": "string" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true }, "required": [ "type" ] }, "SchemaType": { "type": "string", "enum": [ "form", "alert", "app", "audio", "avatar", "button-group", "breadcrumb", "card", "card2", "cards", "carousel", "chart", "calendar", "collapse", "collapse-group", "color", "crud", "crud2", "custom", "date", "static-date", "datetime", "static-datetime", "time", "static-time", "month", "static-month", "date-range", "dialog", "spinner", "divider", "dropdown-button", "drawer", "each", "flex", "flex-item", "grid-2d", "icon", "iframe", "image", "static-image", "images", "static-images", "json-schema", "json-schema-editor", "json", "static-json", "link", "list", "log", "static-list", "map", "mapping", "markdown", "nav", "number", "page", "pagination", "pagination-wrapper", "property", "operation", "plain", "text", "progress", "qrcode", "qr-code", "barcode", "remark", "search-box", "sparkline", "status", "table", "static-table", "table2", "html", "tpl", "tasks", "vbox", "video", "wizard", "wrapper", "web-component", "anchor-nav", "steps", "timeline", "control", "input-array", "action", "button", "submit", "reset", "button-group-select", "button-toolbar", "chained-select", "chart-radios", "checkbox", "checkboxes", "input-city", "input-color", "combo", "condition-builder", "container", "switch-container", "input-date", "input-datetime", "input-time", "input-quarter", "input-year", "input-year-range", "input-month", "input-date-range", "input-time-range", "input-datetime-range", "input-excel", "input-formula", "diff-editor", "office-viewer", "pdf-viewer", "input-signature", "input-verification-code", "shape", "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", "fieldset", "fieldSet", "input-file", "formula", "grid", "group", "hbox", "hidden", "icon-picker", "icon-select", "input-image", "input-group", "list-select", "location-picker", "matrix-checkboxes", "input-month-range", "input-quarter-range", "nested-select", "input-number", "panel", "picker", "radio", "radios", "input-range", "input-rating", "input-repeat", "input-rich-text", "select", "service", "static", "input-sub-form", "switch", "input-table", "tabs", "tabs-transfer", "input-tag", "input-text", "input-password", "input-email", "input-url", "uuid", "multi-select", "textarea", "transfer", "transfer-picker", "tabs-transfer-picker", "input-tree", "tree-select", "table-view", "portlet", "grid-nav", "users-select", "tag", "tags", "words", "password", "multiline-text", "amis", "native-date", "native-time", "native-number", "code", "tooltip-wrapper", "slider" ] }, "BaseSchemaWithoutType": { "type": "object", "properties": { "$$id": { "type": "string", "description": "组件唯一 id,主要用于页面设计器中定位 json 节点" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "容器 css 类名" }, "$ref": { "type": "string", "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。" }, "disabled": { "type": "boolean", "description": "是否禁用" }, "disabledOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否禁用表达式" }, "hidden": { "type": "boolean", "description": "是否隐藏", "deprecated": "推荐用 visible" }, "hiddenOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否隐藏表达式", "deprecated": "推荐用 visibleOn" }, "visible": { "type": "boolean", "description": "是否显示" }, "visibleOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否显示表达式" }, "id": { "type": "string", "description": "组件唯一 id,主要用于日志采集" }, "onEvent": { "type": "object", "additionalProperties": { "type": "object", "properties": { "weight": { "type": "number" }, "actions": { "type": "array", "items": { "$ref": "#/definitions/ListenerAction" } }, "debounce": { "$ref": "#/definitions/debounceConfig" }, "track": { "$ref": "#/definitions/trackConfig" } }, "required": [ "actions" ], "additionalProperties": false }, "description": "事件动作配置" }, "static": { "type": "boolean", "description": "是否静态展示" }, "staticOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否静态展示表达式" }, "staticPlaceholder": { "type": "string", "description": "静态展示空值占位" }, "staticClassName": { "$ref": "#/definitions/SchemaClassName", "description": "静态展示表单项类名" }, "staticLabelClassName": { "$ref": "#/definitions/SchemaClassName", "description": "静态展示表单项Label类名" }, "staticInputClassName": { "$ref": "#/definitions/SchemaClassName", "description": "静态展示表单项Value类名" }, "staticSchema": {}, "style": { "type": "object", "description": "组件样式" }, "editorSetting": { "type": "object", "properties": { "behavior": { "type": "string", "description": "组件行为、用途,如 create、update、remove" }, "displayName": { "type": "string", "description": "组件名称,通常是业务名称方便定位" }, "mock": { "description": "编辑器假数据,方便展示" } }, "description": "编辑器配置,运行时可以忽略" }, "useMobileUI": { "type": "boolean", "description": "可以组件级别用来关闭移动端样式" } }, "additionalProperties": false }, "ListenerAction": { "type": "object", "properties": { "actionType": { "type": "string" }, "description": { "type": "string" }, "componentId": { "type": "string" }, "componentName": { "type": "string" }, "ignoreError": { "type": "boolean" }, "args": { "type": "object" }, "data": { "anyOf": [ { "type": "object" }, { "type": "null" } ] }, "dataMergeMode": { "type": "string", "enum": [ "merge", "override" ] }, "outputVar": { "type": "string" }, "preventDefault": { "type": "boolean" }, "stopPropagation": { "type": "boolean" }, "expression": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/ConditionGroupValue" } ] }, "execOn": { "type": "string" } }, "required": [ "actionType" ] }, "ConditionGroupValue": { "type": "object", "properties": { "id": { "type": "string" }, "conjunction": { "type": "string", "enum": [ "and", "or" ] }, "not": { "type": "boolean" }, "children": { "type": "array", "items": { "anyOf": [ { "$ref": "#/definitions/ConditionRule" }, { "$ref": "#/definitions/ConditionGroupValue" } ] } }, "if": { "type": "string" } }, "required": [ "id", "conjunction" ], "additionalProperties": false }, "ConditionRule": { "type": "object", "properties": { "id": {}, "left": { "$ref": "#/definitions/ExpressionComplex" }, "op": { "$ref": "#/definitions/OperatorType" }, "right": { "anyOf": [ { "$ref": "#/definitions/ExpressionComplex" }, { "type": "array", "items": { "$ref": "#/definitions/ExpressionComplex" } } ] }, "if": { "type": "string" } }, "required": [ "id" ], "additionalProperties": false }, "ExpressionComplex": { "anyOf": [ { "$ref": "#/definitions/ExpressionValue" }, { "$ref": "#/definitions/ExpressionFunc" }, { "$ref": "#/definitions/ExpressionField" }, { "$ref": "#/definitions/ExpressionFormula" } ] }, "ExpressionValue": { "anyOf": [ { "$ref": "#/definitions/ExpressionSimple" }, { "type": "object", "properties": { "type": { "type": "string", "const": "value" }, "value": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "object" } ] } }, "required": [ "type" ], "additionalProperties": false } ] }, "ExpressionSimple": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "object" }, { "not": {} } ] }, "ExpressionFunc": { "type": "object", "properties": { "type": { "type": "string", "const": "func" }, "func": { "type": "string" }, "args": { "type": "array", "items": { "$ref": "#/definitions/ExpressionComplex" } } }, "required": [ "type", "func", "args" ], "additionalProperties": false }, "ExpressionField": { "type": "object", "properties": { "type": { "type": "string", "const": "field" }, "field": { "type": "string" } }, "required": [ "type", "field" ], "additionalProperties": false }, "ExpressionFormula": { "type": "object", "properties": { "type": { "type": "string", "const": "formula" }, "value": { "type": "string" } }, "required": [ "type", "value" ], "additionalProperties": false }, "OperatorType": { "anyOf": [ { "type": "string", "const": "equal" }, { "type": "string", "const": "not_equal" }, { "type": "string", "const": "is_empty" }, { "type": "string", "const": "is_not_empty" }, { "type": "string", "const": "like" }, { "type": "string", "const": "not_like" }, { "type": "string", "const": "starts_with" }, { "type": "string", "const": "ends_with" }, { "type": "string", "const": "less" }, { "type": "string", "const": "less_or_equal" }, { "type": "string", "const": "greater" }, { "type": "string", "const": "greater_or_equal" }, { "type": "string", "const": "between" }, { "type": "string", "const": "not_between" }, { "type": "string", "const": "select_equals" }, { "type": "string", "const": "select_not_equals" }, { "type": "string", "const": "select_any_in" }, { "type": "string", "const": "select_not_any_in" }, { "type": "object", "properties": { "label": { "type": "string" }, "value": { "type": "string" } }, "required": [ "label", "value" ], "additionalProperties": false } ] }, "debounceConfig": { "type": "object", "properties": { "maxWait": { "type": "number" }, "wait": { "type": "number" }, "leading": { "type": "boolean" }, "trailing": { "type": "boolean" } }, "additionalProperties": false }, "trackConfig": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "id", "name" ], "additionalProperties": false }, "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" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PageSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "flex" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FlexSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "tpl", "html" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TplSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "remark" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RemarkSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "alert" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AlertSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "audio" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AudioSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "avatar" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AvatarSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "button-group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ButtonGroupSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "button-toolbar" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ButtonToolbarSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "calendar" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CalendarSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "card" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CardSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "cards" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CardsSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "carousel" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CarouselSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "chart" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ChartSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "collapse" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CollapseSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "collapse-group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CollapseGroupSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "color" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ColorSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "container" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ContainerSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "switch-container" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SwitchContainerSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "date", "datetime", "time", "static-date", "static-datetime", "static-time" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "dialog" }, "dialogType": { "type": "string", "const": "confirm" } }, "required": [ "type", "dialogType" ] }, "then": { "$ref": "#/definitions/DialogSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "divider" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DividerSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "drawer" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DrawerSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "dropdown-button" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DropdownButtonSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "each" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/EachSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "grid" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/GridSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "grid-2d" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/Grid2DSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "hbox" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/HBoxSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "icon" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/IconSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "iframe" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/IFrameSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "image", "static-image" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ImageSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "images", "static-images" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ImagesSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "json", "static-json" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/JsonSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "link" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/LinkSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "list", "static-list" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ListSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "map", "mapping" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MappingSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "nav" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/NavSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "operation" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/OperationSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "pagination" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PaginationSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "pagination-wrapper" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PaginationWrapperSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "panel" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PanelSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "plain", "text" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PlainSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "progress" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ProgressSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "qrcode", "qr-code" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/QRCodeSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "search-box" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SearchBoxSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "service" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ServiceSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "sparkline" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SparkLineSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "status" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/StatusSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "spinner" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SpinnerSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "table", "static-table" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TableSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "table2" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TableSchema2" } }, { "if": { "properties": { "type": { "type": "string", "const": "tabs" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TabsSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "tasks" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TasksSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "vbox" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/VBoxSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "video" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/VideoSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "wizard" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/WizardSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "wrapper" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/WrapperSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "tooltip-wrapper" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TooltipWrapperSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "form" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FormSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "anchor-nav" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AnchorNavSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "steps" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/StepsSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "portlet" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PortletSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "timeline" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TimelineSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "control" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FormControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-array" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ArrayControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "button-group-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ButtonGroupControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "chained-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ChainedSelectControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "checkbox" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CheckboxControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "checkboxes" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CheckboxesControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-city" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputCityControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-color" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputColorControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "combo" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ComboControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "condition-builder" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ConditionBuilderControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-date" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-datetime" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateTimeControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-time" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TimeControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-month" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MonthControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-quarter" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/QuarterControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-year" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/YearControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "input-date-range", "input-datetime-range", "input-time-range" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateRangeControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "diff-editor" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DiffControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "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" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/EditorControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "fieldset", "fieldSet" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FieldSetControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-file" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FileControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "formula" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FormulaControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/GroupControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "hidden" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/HiddenControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "icon-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/IconPickerControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-image" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ImageControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputGroupControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "list-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ListControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "json-schema-editor" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/JSONSchemaEditorControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-signature" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputSignatureSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "location-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/LocationControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "uuid" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/UUIDControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "matrix-checkboxes" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MatrixControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-month-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MonthRangeControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-quarter-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/QuarterRangeControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "nested-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/NestedSelectControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-number" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/NumberControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PickerControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "radios" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RadiosControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "radio" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RadioControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RangeControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-rating" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RatingControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-rich-text" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RichTextControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-repeat" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RepeatControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "select", "multi-select" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SelectControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-sub-form" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SubFormControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "switch" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SwitchControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "static" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/StaticExactControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-table" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TableControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "tabs-transfer" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TabsTransferControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-tag" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TagControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "input-text", "input-email", "input-url", "input-password", "native-date", "native-time", "native-number" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TextControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "textarea" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TextareaControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "transfer" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TransferControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "transfer-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TransferPickerControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "tabs-transfer-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TabsTransferPickerControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "input-tree" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TreeControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "tree-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TreeSelectControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "users-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/UserSelectControlSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "date-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateRangeSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "multiline-text" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MultilineTextSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "password" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PasswordSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "words" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/WordsSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "slider" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SliderSchema" } }, { "if": { "properties": { "type": { "enum": [ "action", "button", "submit", "reset" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ActionSchema" } }, { "if": { "properties": { "type": { "const": "crud" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CRUDSchema" } } ] }, "FlexSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "flex", "description": "指定为 flex 展示类型" }, "justify": { "type": "string", "enum": [ "start", "flex-start", "center", "end", "flex-end", "space-around", "space-between", "space-evenly" ], "description": "水平分布" }, "alignItems": { "type": "string", "enum": [ "stretch", "start", "flex-start", "flex-end", "end", "center", "baseline" ], "description": "垂直布局" }, "alignContent": { "type": "string", "enum": [ "normal", "flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly", "stretch" ], "description": "多行情况下的垂直分布" }, "direction": { "type": "string", "enum": [ "row", "column", "row-reverse", "column-reverse" ], "description": "方向" }, "items": { "$ref": "#/definitions/SchemaCollection", "description": "每个 flex 的设置" }, "style": { "type": "object", "description": "自定义样式" } }, "required": [ "type", "items" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "flex" }, "testid": true, "justify": true, "alignItems": true, "alignContent": true, "direction": true, "items": true }, "required": [ "type", "items" ], "description": "Flex 布局 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/flex" }, "TplSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "tpl", "html" ], "description": "指定为模板渲染器。\n\n文档:https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/template" }, "tpl": { "$ref": "#/definitions/SchemaTpl" }, "html": { "$ref": "#/definitions/SchemaTpl" }, "text": { "$ref": "#/definitions/SchemaTpl" }, "raw": { "type": "string" }, "inline": { "type": "boolean", "description": "是否内联显示?" }, "wrapperComponent": { "description": "标签类型" }, "style": { "type": "object", "description": "自定义样式" }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "testidBuilder": { "$ref": "#/definitions/TestIdBuilder" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "tpl", "html" ] }, "testid": true, "tpl": true, "html": true, "text": true, "raw": true, "inline": true, "wrapperComponent": true, "badge": true, "testidBuilder": true }, "required": [ "type" ], "description": "tpl 渲染器" }, "BadgeObject": { "type": "object", "properties": { "className": { "type": "string" }, "text": { "type": [ "string", "number" ], "description": "文本内容" }, "size": { "type": "number", "description": "大小" }, "mode": { "type": "string", "enum": [ "text", "dot", "ribbon" ], "description": "角标类型" }, "offset": { "type": "array", "items": { "type": [ "number", "string" ] }, "minItems": 2, "maxItems": 2, "description": "角标位置,相对于position的位置进行偏移" }, "position": { "type": "string", "enum": [ "top-right", "top-left", "bottom-right", "bottom-left" ], "description": "角标位置" }, "overflowCount": { "type": "number", "description": "封顶的数字值" }, "visibleOn": { "type": "string", "description": "动态控制是否显示" }, "animation": { "type": "boolean", "description": "是否显示动画" }, "style": { "type": "object", "description": "角标的自定义样式" }, "level": { "type": "string", "description": "提示类型" } }, "additionalProperties": false, "description": "Badge 角标。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/badge" }, "TestIdBuilder": { "type": "object", "properties": { "testId": { "type": "string" } }, "additionalProperties": false }, "RemarkSchema": { "allOf": [ { "$ref": "#/definitions/BaseRemarkSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "remark" }, "testid": true, "label": true, "icon": true, "tooltipClassName": true, "trigger": true, "title": true, "content": true, "placement": true, "rootClose": true, "shape": true }, "required": [ "type" ] }, "ActionSchema": { "if": { "required": [ "actionType" ] }, "then": { "allOf": [ { "if": { "properties": { "actionType": { "type": "string", "const": "ajax" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/AjaxActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "url" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/UrlActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "link" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/LinkActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "dialog" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/DialogActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "drawer" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/DrawerActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "toast" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/ToastActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "copy" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/CopyActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "reload" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/ReloadActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "const": "email" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/EmailActionSchema" } }, { "if": { "properties": { "actionType": { "type": "string", "enum": [ "prev", "next", "cancel", "close", "submit", "confirm", "add", "reset", "reset-and-submit" ] } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/OtherActionSchema" } } ] }, "else": { "$ref": "#/definitions/VanillaAction" } }, "AjaxActionSchema": { "allOf": [ { "type": "object", "properties": { "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" }, "isolateScope": { "type": "boolean", "description": "是否开启请求隔离, 主要用于隔离联动CRUD, Service的请求" } }, "required": [ "actionType", "api" ] }, { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "ajax" }, "api": true, "feedback": true, "reload": true, "redirect": true, "ignoreConfirm": true, "isolateScope": true }, "required": [ "actionType", "api" ] }, "SchemaApi": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaApiObject" } ] }, "SchemaApiObject": { "type": "object", "properties": { "method": { "type": "string", "enum": [ "get", "post", "put", "delete", "patch", "jsonp", "js" ], "description": "API 发送类型" }, "url": { "$ref": "#/definitions/SchemaUrlPath", "description": "API 发送目标地址" }, "data": { "type": "object", "description": "用来控制携带数据. 当key 为 `&` 值为 `$$` 时, 将所有原始数据打平设置到 data 中. 当值为 $$ 将所有原始数据赋值到对应的 key 中. 当值为 $ 打头时, 将变量值设置到 key 中." }, "convertKeyToPath": { "type": "boolean", "description": "默认数据映射中的key如果带点,或者带大括号,会转成对象比如:\n\n{ 'a.b': '123' }\n\n经过数据映射后变成 { a: { b: '123 } }\n\n如果想要关闭此功能,请设置 convertKeyToPath 为 false" }, "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 外的变量,请配置 trackExpression。" }, "cache": { "type": "number", "description": "如果设置了值,同一个接口,相同参数,指定的时间(单位:ms)内请求将直接走缓存。" }, "forceAppendDataToQuery": { "type": "boolean", "description": "强制将数据附加在 query,默认只有 api 地址中没有用变量的时候 crud 查询接口才会 自动附加数据到 query 部分,如果想强制附加请设置这个属性。 对于那种临时加了个变量但是又不想全部参数写一遍的时候配置很有用。" }, "qsOptions": { "type": "object", "properties": { "arrayFormat": { "type": "string", "enum": [ "indices", "brackets", "repeat", "comma" ] }, "indices": { "type": "boolean" }, "allowDots": { "type": "boolean" } }, "additionalProperties": false, "description": "qs 配置项" }, "silent": { "type": "boolean", "description": "autoFill 是否显示自动填充错误提示" }, "downloadFileName": { "type": "string", "description": "文件下载时,指定文件名" } }, "required": [ "url" ], "additionalProperties": false }, "SchemaUrlPath": { "$ref": "#/definitions/SchemaTokenizeableString" }, "SchemaTokenizeableString": { "type": "string" }, "FeedbackDialog": { "allOf": [ { "type": "object", "properties": { "visibleOn": { "type": "string", "description": "可以用来配置 feedback 的出现条件" }, "skipRestOnCancel": { "type": "boolean", "description": "feedback 弹框取消是否中断后续操作" }, "skipRestOnConfirm": { "type": "boolean", "description": "feedback 弹框确认是否中断后续操作" } } }, { "$ref": "#/definitions/DialogSchemaBase", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "dialog" }, "testid": true, "inputParams": true, "actions": true, "body": true, "bodyClassName": true, "closeOnEsc": true, "closeOnOutside": true, "name": true, "size": true, "height": true, "width": true, "title": true, "header": true, "headerClassName": true, "footer": true, "confirm": true, "showCloseButton": true, "showErrorMsg": true, "showLoading": true, "overlay": true, "dialogType": { "type": "string", "const": "confirm" }, "draggable": true, "allowFullscreen": true, "data": true, "skipRestOnCancel": true, "skipRestOnConfirm": true } }, "DialogSchemaBase": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "dialog" }, "inputParams": { "description": "弹窗参数说明,值格式为 JSONSchema。" }, "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" }, "closeOnOutside": { "type": "boolean", "description": "是否支持点其它区域关闭 Dialog" }, "name": { "$ref": "#/definitions/SchemaName" }, "size": { "type": "string", "enum": [ "xs", "sm", "md", "lg", "xl", "full" ], "description": "Dialog 大小" }, "height": { "type": "string", "description": "Dialog 高度" }, "width": { "type": "string", "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": "是否显示错误信息" }, "showLoading": { "type": "boolean", "description": "是否显示 spinner" }, "overlay": { "type": "boolean", "description": "是否显示蒙层" }, "dialogType": { "type": "string", "const": "confirm", "description": "弹框类型 confirm 确认弹框" }, "draggable": { "type": "boolean", "description": "可拖拽" }, "allowFullscreen": { "type": "boolean", "description": "可全屏" }, "data": { "type": "object", "description": "数据映射" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "dialog" }, "testid": true, "inputParams": true, "actions": true, "body": true, "bodyClassName": true, "closeOnEsc": true, "closeOnOutside": true, "name": true, "size": true, "height": true, "width": true, "title": true, "header": true, "headerClassName": true, "footer": true, "confirm": true, "showCloseButton": true, "showErrorMsg": true, "showLoading": true, "overlay": true, "dialogType": { "type": "string", "const": "confirm" }, "draggable": true, "allowFullscreen": true, "data": true }, "required": [ "type" ], "description": "Dialog 弹框渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/dialog" }, "SchemaName": { "type": "string", "description": "组件名字,这个名字可以用来定位,用于组件通信" }, "SchemaReload": { "type": "string", "description": "配置刷新动作,这个动作通常在完成渲染器本省的固定动作后出发。\n\n一般用来配置目标组件的 name 属性。多个目标可以用逗号隔开。\n\n当目标是 windows 时表示刷新整个页面。\n\n刷新目标的同时还支持传递参数如: `foo?a=${a}&b=${b},boo?c=${c}`" }, "ButtonSchema": { "allOf": [ { "type": "object", "properties": { "id": { "type": "string", "description": "主要用于用户行为跟踪里区分是哪个按钮" }, "block": { "type": "boolean", "description": "是否为块状展示,默认为内联。" }, "disabledTip": { "type": "string", "description": "禁用时的文案提示。" }, "icon": { "$ref": "#/definitions/SchemaIcon", "description": "按钮图标, iconfont 的类名" }, "iconClassName": { "$ref": "#/definitions/SchemaClassName", "description": "icon 上的css 类名" }, "rightIcon": { "$ref": "#/definitions/SchemaIcon", "description": "右侧按钮图标, iconfont 的类名" }, "rightIconClassName": { "$ref": "#/definitions/SchemaClassName", "description": "右侧 icon 上的 css 类名" }, "loadingClassName": { "$ref": "#/definitions/SchemaClassName", "description": "loading 上的css 类名" }, "label": { "type": "string", "description": "按钮文字" }, "level": { "type": "string", "enum": [ "info", "success", "warning", "danger", "link", "primary", "dark", "light", "secondary" ], "description": "按钮样式" }, "primary": { "type": "boolean", "deprecated": "通过 level 来配置" }, "size": { "type": "string", "enum": [ "xs", "sm", "md", "lg" ], "description": "按钮大小" }, "tooltip": { "$ref": "#/definitions/SchemaTooltip" }, "tooltipPlacement": { "type": "string", "enum": [ "top", "right", "bottom", "left" ] }, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ], "description": "指定按钮类型,支持 button、submit或者reset三种类型。" }, "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": "倒计时文字自定义" }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "hotKey": { "type": "string", "description": "键盘快捷键" }, "loadingOn": { "type": "string", "description": "是否显示loading效果" }, "disabledOnAction": { "type": "boolean", "description": "是否在动作结束前禁用按钮" }, "onClick": { "anyOf": [ { "type": "string" }, {} ], "description": "自定义事件处理函数" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "子内容" }, "tabIndex": { "type": "string" }, "href": { "type": "string", "description": "点击后打开的链接地址" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true }, "required": [ "type" ] }, "SchemaTooltip": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "title": { "type": "string", "description": "标题" }, "content": { "type": "string", "description": "内容" } }, "required": [ "content" ], "additionalProperties": false } ] }, "UrlActionSchema": { "allOf": [ { "type": "object", "properties": { "actionType": { "type": "string", "const": "url", "description": "指定为打开链接" }, "blank": { "type": "boolean", "description": "是否新窗口打开" }, "url": { "type": "string", "description": "打开的目标地址" } }, "required": [ "actionType", "url" ] }, { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "url" }, "blank": true, "url": true }, "required": [ "actionType", "url" ] }, "LinkActionSchema": { "allOf": [ { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "link" }, "link": true }, "required": [ "actionType", "link" ] }, "DialogActionSchema": { "allOf": [ { "type": "object", "properties": { "actionType": { "type": "string", "const": "dialog", "description": "指定为打开弹窗" }, "dialog": { "$ref": "#/definitions/DialogSchemaBase", "description": "弹框详情 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/dialog" }, "nextCondition": { "$ref": "#/definitions/SchemaExpression", "description": "是否有下一个的表达式,正常可以不用配置,如果想要刷掉某些数据可以配置这个。" }, "reload": { "$ref": "#/definitions/SchemaReload" }, "redirect": { "type": "string" }, "data": { "description": "数据映射" } }, "required": [ "actionType", "dialog" ] }, { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "dialog" }, "dialog": true, "nextCondition": true, "reload": true, "redirect": true, "data": true }, "required": [ "actionType", "dialog" ] }, "DrawerActionSchema": { "allOf": [ { "type": "object", "properties": { "actionType": { "type": "string", "const": "drawer", "description": "指定为打开弹窗,抽出式弹窗" }, "drawer": { "$ref": "#/definitions/DrawerSchemaBase", "description": "抽出式弹框详情 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/drawer" }, "nextCondition": { "$ref": "#/definitions/SchemaExpression", "description": "是否有下一个的表达式,正常可以不用配置,如果想要刷掉某些数据可以配置这个。" }, "reload": { "$ref": "#/definitions/SchemaReload" }, "redirect": { "type": "string" }, "data": { "description": "数据映射" } }, "required": [ "actionType", "drawer" ] }, { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "drawer" }, "drawer": true, "nextCondition": true, "reload": true, "redirect": true, "data": true }, "required": [ "actionType", "drawer" ] }, "DrawerSchemaBase": { "allOf": [ { "type": "object", "properties": { "inputParams": { "description": "弹窗参数说明,值格式为 JSONSchema。" }, "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "默认不用填写,自动会创建确认和取消按钮。" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "配置 外层 className" }, "bodyClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置 Body 容器 className" }, "headerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置 头部 容器 className" }, "footerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置 头部 容器 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": "从什么位置弹出" }, "showCloseButton": { "type": "boolean", "description": "是否展示关闭按钮 当值为false时,默认开启closeOnOutside" }, "width": { "type": [ "number", "string" ], "description": "抽屉的宽度 (当position为left | right时生效)" }, "height": { "type": [ "number", "string" ], "description": "抽屉的高度 (当position为top | bottom时生效)" }, "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": "是否显示错误信息" }, "data": { "type": "object", "description": "数据映射" } } }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "inputParams": true, "actions": true, "body": true, "bodyClassName": true, "headerClassName": true, "footerClassName": true, "closeOnEsc": true, "name": true, "size": true, "title": true, "position": true, "showCloseButton": true, "width": true, "height": true, "header": true, "footer": true, "confirm": true, "resizable": true, "overlay": true, "closeOnOutside": true, "showErrorMsg": true, "data": true }, "description": "Drawer 抽出式弹框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/drawer" }, "ToastActionSchema": { "allOf": [ { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "toast" }, "toast": true }, "required": [ "actionType", "toast" ] }, "CopyActionSchema": { "allOf": [ { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "copy" }, "copy": true }, "required": [ "actionType", "copy" ] }, "ReloadActionSchema": { "allOf": [ { "type": "object", "properties": { "actionType": { "type": "string", "const": "reload", "description": "指定为刷新目标组件。" }, "target": { "$ref": "#/definitions/SchemaReload", "description": "指定目标组件。" } }, "required": [ "actionType" ] }, { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "reload" } }, "required": [ "actionType" ] }, "EmailActionSchema": { "allOf": [ { "type": "object", "properties": { "actionType": { "type": "string", "const": "email", "description": "指定为打开邮箱行为" }, "to": { "type": "string", "description": "收件人邮箱" }, "cc": { "type": "string", "description": "抄送邮箱" }, "bcc": { "type": "string", "description": "匿名抄送邮箱" }, "subject": { "type": "string", "description": "邮件主题" }, "body": { "type": "string", "description": "邮件正文" } }, "required": [ "actionType", "to" ] }, { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "const": "email" }, "to": true, "cc": true, "bcc": true, "subject": true }, "required": [ "actionType", "to" ] }, "OtherActionSchema": { "allOf": [ { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "action", "button", "submit", "reset" ] }, "testid": true, "block": true, "disabledTip": true, "icon": true, "iconClassName": true, "rightIcon": true, "rightIconClassName": true, "loadingClassName": true, "label": true, "level": true, "primary": true, "size": true, "tooltip": true, "tooltipPlacement": true, "confirmText": true, "required": true, "activeLevel": true, "activeClassName": true, "close": true, "requireSelected": true, "mergeData": true, "target": true, "countDown": true, "countDownTpl": true, "badge": true, "hotKey": true, "loadingOn": true, "disabledOnAction": true, "onClick": true, "body": true, "tabIndex": true, "href": true, "actionType": { "type": "string", "enum": [ "prev", "next", "cancel", "close", "submit", "confirm", "add", "reset", "reset-and-submit" ] } }, "required": [ "actionType" ] }, "VanillaAction": { "allOf": [ { "type": "object", "properties": { "actionType": { "type": "string" }, "downloadFileName": { "type": "string" } } }, { "$ref": "#/definitions/ButtonSchema", "additionalProperties": true } ] }, "AlertSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "alert", "description": "指定为提示框类型" }, "title": { "type": "string", "description": "提示框标题" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "level": { "type": "string", "enum": [ "info", "warning", "success", "danger" ], "description": "提示类型" }, "showCloseButton": { "type": "boolean", "description": "是否显示关闭按钮" }, "closeButtonClassName": { "type": "string", "description": "关闭按钮CSS类名" }, "showIcon": { "type": "boolean", "description": "是否显示ICON" }, "icon": { "$ref": "#/definitions/SchemaIcon", "description": "左侧图标" }, "iconClassName": { "type": "string", "description": "图标CSS类名" }, "actions": { "$ref": "#/definitions/SchemaCollection", "description": "操作区域" } }, "required": [ "type", "body" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "alert" }, "testid": true, "title": true, "body": true, "level": true, "showCloseButton": true, "closeButtonClassName": true, "showIcon": true, "icon": true, "iconClassName": true, "actions": true }, "required": [ "type", "body" ], "description": "Alert 提示渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/alert" }, "AudioSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "audio", "description": "指定为音频播放器" }, "inline": { "type": "boolean", "description": "是否是内联模式" }, "src": { "$ref": "#/definitions/SchemaUrlPath", "description": "\"视频播放地址, 支持 $ 取变量。" }, "loop": { "type": "boolean", "description": "是否循环播放" }, "autoPlay": { "type": "boolean", "description": "是否自动播放" }, "rates": { "type": "array", "items": { "type": "number" }, "description": "配置可选播放倍速" }, "controls": { "type": "array", "items": { "type": "string", "enum": [ "rates", "play", "time", "process", "volume" ] }, "description": "可以配置控制器" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "audio" }, "testid": true, "inline": true, "src": true, "loop": true, "autoPlay": true, "rates": true, "controls": true }, "required": [ "type" ], "description": "Audio 音频渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/audio" }, "AvatarSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "avatar" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "类名" }, "style": { "type": "object", "description": "自定义样式" }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "src": { "type": "string", "description": "图片地址" }, "defaultAvatar": { "type": "string", "description": "默认头像" }, "icon": { "type": "string", "description": "图标" }, "fit": { "type": "string", "enum": [ "fill", "contain", "cover", "none", "scale-down" ], "description": "图片相对于容器的缩放方式" }, "shape": { "type": "string", "enum": [ "circle", "square", "rounded" ], "description": "形状" }, "size": { "anyOf": [ { "type": "number" }, { "type": "string", "const": "small" }, { "type": "string", "const": "default" }, { "type": "string", "const": "large" } ], "description": "大小" }, "text": { "type": "string", "description": "文本" }, "gap": { "type": "number", "description": "字符类型距离左右两侧边界单位像素" }, "alt": { "type": "string", "description": "图片无法显示时的替换文字地址" }, "draggable": { "type": "boolean", "description": "图片是否允许拖动" }, "crossOrigin": { "type": "string", "enum": [ "anonymous", "use-credentials", "" ], "description": "图片CORS属性" }, "onError": { "type": "string", "description": "图片加载失败的是否默认处理,字符串函数" } }, "required": [ "type", "crossOrigin" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "avatar" }, "testid": true, "badge": true, "src": true, "defaultAvatar": true, "icon": true, "fit": true, "shape": true, "size": true, "text": true, "gap": true, "alt": true, "draggable": true, "crossOrigin": true, "onError": true }, "required": [ "type", "crossOrigin" ] }, "ButtonGroupSchema": { "allOf": [ { "$ref": "#/definitions/BaseButtonGroupSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "button-group" }, "testid": true, "btnClassName": true, "btnActiveClassName": true, "buttons": true, "btnLevel": true, "btnActiveLevel": true, "vertical": true, "tiled": true, "size": true }, "required": [ "type" ] }, "BaseButtonGroupSchema": { "allOf": [ { "type": "object", "properties": { "btnClassName": { "$ref": "#/definitions/SchemaClassName", "deprecated": "给 Button 配置 className。建议用btnLevel" }, "btnActiveClassName": { "type": "string", "deprecated": "给选中态 Button 配置 className。建议用btnActiveLevel" }, "buttons": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "按钮集合" }, "btnLevel": { "type": "string", "description": "按钮样式级别" }, "btnActiveLevel": { "type": "string", "description": "按钮选中的样式级别" }, "vertical": { "type": "boolean", "description": "垂直展示?" }, "tiled": { "type": "boolean", "description": "平铺展示?" }, "disabled": { "type": "boolean", "description": "是否为禁用状态。" }, "disabledOn": { "$ref": "#/definitions/SchemaExpression", "description": "通过 JS 表达式来配置当前表单项的禁用状态。" }, "visible": { "type": "boolean", "description": "是否显示" }, "visibleOn": { "$ref": "#/definitions/SchemaExpression", "description": "通过 JS 表达式来配置当前表单项是否显示" }, "size": { "type": "string", "enum": [ "xs", "sm", "md", "lg" ], "description": "按钮大小" } } }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "btnClassName": true, "btnActiveClassName": true, "buttons": true, "btnLevel": true, "btnActiveLevel": true, "vertical": true, "tiled": true, "size": true }, "description": "Button Group 渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/button-group" }, "ButtonToolbarSchema": { "allOf": [ { "$ref": "#/definitions/BaseSchema", "additionalProperties": true }, { "$ref": "#/definitions/FormBaseControlWithoutSize", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "button-toolbar" }, "testid": true, "buttons": true }, "required": [ "type", "buttons" ], "description": "Button Toolar 渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/button-toolbar" }, "FormBaseControlWithoutSize": { "type": "object", "properties": { "label": { "anyOf": [ { "type": "string" }, { "type": "boolean", "enum": [ false ] } ], "description": "描述标题, 当值为 false 时不展示" }, "labelAlign": { "$ref": "#/definitions/LabelAlign", "description": "描述标题" }, "labelWidth": { "type": [ "number", "string" ], "description": "label自定义宽度,默认单位为px" }, "labelOverflow": { "type": "string", "enum": [ "default", "ellipsis" ], "description": "label展示形式" }, "labelClassName": { "type": "string", "description": "配置 label className" }, "name": { "type": "string", "description": "字段名,表单提交时的 key,支持多层级,用.连接,如: a.b.c" }, "extraName": { "type": "string", "description": "额外的字段名,当为范围组件时可以用来将另外一个值打平出来" }, "remark": { "description": "显示一个小图标, 鼠标放上去的时候显示提示内容" }, "labelRemark": { "description": "显示一个小图标, 鼠标放上去的时候显示提示内容, 这个小图标跟 label 在一起" }, "hint": { "type": "string", "description": "输入提示,聚焦的时候显示" }, "submitOnChange": { "type": "boolean", "description": "当修改完的时候是否提交表单。" }, "readOnly": { "type": "boolean", "description": "是否只读" }, "readOnlyOn": { "type": "string", "description": "只读条件" }, "validateOnChange": { "type": "boolean", "description": "不设置时,当表单提交过后表单项每次修改都会触发重新验证, 如果设置了,则由此配置项来决定要不要每次修改都触发验证。" }, "description": { "type": "string", "description": "描述内容,支持 Html 片段。" }, "desc": { "type": "string", "deprecated": "用 description 代替" }, "descriptionClassName": { "$ref": "#/definitions/ClassName", "description": "配置描述上的 className" }, "mode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置当前表单项展示模式" }, "horizontal": { "$ref": "#/definitions/FormHorizontal", "description": "当配置为水平布局的时候,用来配置具体的左右分配。" }, "inline": { "type": "boolean", "description": "表单 control 是否为 inline 模式。" }, "inputClassName": { "$ref": "#/definitions/ClassName", "description": "配置 input className" }, "placeholder": { "anyOf": [ { "type": "string" }, { "type": "object", "additionalProperties": { "type": "string" } } ], "description": "占位符" }, "required": { "type": "boolean", "description": "是否为必填" }, "validationErrors": { "type": "object", "properties": { "isAlpha": { "type": "string" }, "isAlphanumeric": { "type": "string" }, "isEmail": { "type": "string" }, "isFloat": { "type": "string" }, "isInt": { "type": "string" }, "isJson": { "type": "string" }, "isLength": { "type": "string" }, "isNumeric": { "type": "string" }, "isRequired": { "type": "string" }, "isUrl": { "type": "string" }, "matchRegexp": { "type": "string" }, "matchRegexp2": { "type": "string" }, "matchRegexp3": { "type": "string" }, "matchRegexp4": { "type": "string" }, "matchRegexp5": { "type": "string" }, "maxLength": { "type": "string" }, "maximum": { "type": "string" }, "minLength": { "type": "string" }, "minimum": { "type": "string" }, "isDateTimeSame": { "type": "string" }, "isDateTimeBefore": { "type": "string" }, "isDateTimeAfter": { "type": "string" }, "isDateTimeSameOrBefore": { "type": "string" }, "isDateTimeSameOrAfter": { "type": "string" }, "isDateTimeBetween": { "type": "string" }, "isTimeSame": { "type": "string" }, "isTimeBefore": { "type": "string" }, "isTimeAfter": { "type": "string" }, "isTimeSameOrBefore": { "type": "string" }, "isTimeSameOrAfter": { "type": "string" }, "isTimeBetween": { "type": "string" } }, "description": "验证失败的提示信息" }, "validations": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "isAlpha": { "type": "boolean", "description": "是否是字母" }, "isAlphanumeric": { "type": "boolean", "description": "是否为字母数字" }, "isEmail": { "type": "boolean", "description": "是否为邮箱地址" }, "isFloat": { "type": "boolean", "description": "是否为浮点型" }, "isInt": { "type": "boolean", "description": "是否为整型" }, "isJson": { "type": "boolean", "description": "是否为 json" }, "isLength": { "type": "number", "description": "长度等于指定值" }, "isNumeric": { "type": "boolean", "description": "是否为数字" }, "isRequired": { "type": "boolean", "description": "是否为必填" }, "isUrl": { "type": "boolean", "description": "是否为 URL 地址" }, "matchRegexp": { "type": "string", "description": "内容命中指定正则" }, "matchRegexp1": { "type": "string", "description": "内容命中指定正则" }, "matchRegexp2": { "type": "string", "description": "内容命中指定正则" }, "matchRegexp3": { "type": "string", "description": "内容命中指定正则" }, "matchRegexp4": { "type": "string", "description": "内容命中指定正则" }, "matchRegexp5": { "type": "string", "description": "内容命中指定正则" }, "maxLength": { "type": "number", "description": "最大长度为指定值" }, "maximum": { "type": "number", "description": "最大值为指定值" }, "minLength": { "type": "number", "description": "最小长度为指定值" }, "minimum": { "type": "number", "description": "最小值为指定值" }, "isDateTimeSame": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "和目标日期相同,支持指定粒度,默认到毫秒" }, "isDateTimeBefore": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "早于目标日期,支持指定粒度,默认到毫秒" }, "isDateTimeAfter": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "晚于目标日期,支持指定粒度,默认到毫秒" }, "isDateTimeSameOrBefore": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "早于目标日期或和目标日期相同,支持指定粒度,默认到毫秒" }, "isDateTimeSameOrAfter": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "晚于目标日期或和目标日期相同,支持指定粒度,默认到毫秒" }, "isDateTimeBetween": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "日期处于目标日期范围,支持指定粒度和区间的开闭形式,默认到毫秒, 左右开区间" }, "isTimeSame": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "和目标时间相同,支持指定粒度,默认到毫秒" }, "isTimeBefore": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "早于目标时间,支持指定粒度,默认到毫秒" }, "isTimeAfter": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "晚于目标时间,支持指定粒度,默认到毫秒" }, "isTimeSameOrBefore": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "早于目标时间或和目标时间相同,支持指定粒度,默认到毫秒" }, "isTimeSameOrAfter": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "晚于目标时间或和目标时间相同,支持指定粒度,默认到毫秒" }, "isTimeBetween": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "时间处于目标时间范围,支持指定粒度和区间的开闭形式,默认到毫秒, 左右开区间" } } } ] }, "value": { "description": "默认值,切记只能是静态值,不支持取变量,跟数据关联是通过设置 name 属性来实现的。" }, "clearValueOnHidden": { "type": "boolean", "description": "表单项隐藏时,是否在当前 Form 中删除掉该表单项值。注意同名的未隐藏的表单项值也会删掉" }, "validateApi": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseApiObject" } ], "description": "远端校验表单项接口" }, "autoFill": { "anyOf": [ { "type": "object", "additionalProperties": { "type": "string" } }, { "type": "object", "properties": { "showSuggestion": { "type": "boolean", "description": "是否为参照录入模式,参照录入会展示候选值供用户选择,而不是直接填充。" }, "defaultSelection": { "description": "参照录入时,默认选中的值" }, "api": { "$ref": "#/definitions/BaseApi", "description": "自动填充 api" }, "silent": { "type": "boolean", "description": "是否展示数据格式错误提示,默认为不展示", "default": true }, "fillMappinng": { "type": "object", "description": "填充时的数据映射" }, "trigger": { "type": "string", "enum": [ "change", "focus", "blur" ], "description": "触发条件,默认为 change" }, "mode": { "type": "string", "enum": [ "popOver", "dialog", "drawer" ], "description": "弹窗方式,当为参照录入时用可以配置" }, "position": { "type": "string", "description": "当参照录入为抽屉时可以配置弹出位置" }, "size": { "type": "string", "description": "当为参照录入时可以配置弹出容器的大小" }, "columns": { "type": "array", "items": {}, "description": "参照录入展示的项" }, "filter": { "description": "参照录入时的过滤条件" } }, "additionalProperties": false } ], "description": "自动填充,当选项被选择的时候,将选项中的其他值同步设置到表单内。" }, "initAutoFill": { "anyOf": [ { "type": "boolean" }, { "type": "string", "const": "fillIfNotSet" } ], "default": "fillIfNotSet\n初始化时是否把其他字段同步到表单内部。" }, "row": { "type": "number" } }, "additionalProperties": false }, "LabelAlign": { "type": "string", "enum": [ "right", "left", "top", "inherit" ] }, "ClassName": { "anyOf": [ { "type": "string" }, { "type": "object", "additionalProperties": { "anyOf": [ { "type": "boolean" }, { "not": {} }, { "type": "null" }, { "type": "string" } ] } } ] }, "FormHorizontal": { "type": "object", "properties": { "left": { "type": "number" }, "right": { "type": "number" }, "leftFixed": { "anyOf": [ { "type": "boolean" }, { "type": "number" }, { "type": "string", "const": "xs" }, { "type": "string", "const": "sm" }, { "type": "string", "const": "md" }, { "type": "string", "const": "lg" } ] }, "justify": { "type": "boolean" }, "labelAlign": { "type": "string", "enum": [ "left", "right" ] }, "labelWidth": { "type": [ "number", "string" ], "description": "label自定义宽度,默认单位为px" }, "labelOverflow": { "type": "string", "enum": [ "default", "ellipsis" ] } }, "additionalProperties": false }, "BaseApiObject": { "type": "object", "properties": { "method": { "type": "string", "enum": [ "get", "post", "put", "delete", "patch", "jsonp", "js" ], "description": "API 发送类型" }, "url": { "type": "string", "description": "API 发送目标地址" }, "data": { "type": "object", "description": "用来控制携带数据. 当key 为 `&` 值为 `$$` 时, 将所有原始数据打平设置到 data 中. 当值为 $$ 将所有原始数据赋值到对应的 key 中. 当值为 $ 打头时, 将变量值设置到 key 中." }, "convertKeyToPath": { "type": "boolean", "description": "默认数据映射中的key如果带点,或者带大括号,会转成对象比如:\n\n{ 'a.b': '123' }\n\n经过数据映射后变成 { a: { b: '123 } }\n\n如果想要关闭此功能,请设置 convertKeyToPath 为 false" }, "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": { "type": "string", "description": "设置发送条件" }, "replaceData": { "type": "boolean", "description": "默认都是追加模式,如果想完全替换把这个配置成 true" }, "concatDataFields": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "是否将两次返回的数据字段,做一个合并。配置返回对象中的字段名,支持配置多个。\n\n比如:同时返回 log 字段,第一次返回 {log: '1'},第二次返回 {log: '2'},合并后的结果是 {log: ['1', '2']]} 再比如:同时返回 items 字段,第一次返回 {items: [1, 2]},第二次返回 {items: [3, 4]},合并后的结果是 {items: [1, 2, 3, 4]}" }, "autoRefresh": { "type": "boolean", "description": "是否自动刷新,当 url 中的取值结果变化时,自动刷新数据。", "default": true }, "trackExpression": { "type": "string", "description": "当开启自动刷新的时候,默认是 api 的 url 来自动跟踪变量变化的。 如果你希望监控 url 外的变量,请配置 trackExpression。" }, "cache": { "type": "number", "description": "如果设置了值,同一个接口,相同参数,指定的时间(单位:ms)内请求将直接走缓存。" }, "forceAppendDataToQuery": { "type": "boolean", "description": "强制将数据附加在 query,默认只有 api 地址中没有用变量的时候 crud 查询接口才会 自动附加数据到 query 部分,如果想强制附加请设置这个属性。 对于那种临时加了个变量但是又不想全部参数写一遍的时候配置很有用。" }, "qsOptions": { "type": "object", "properties": { "arrayFormat": { "type": "string", "enum": [ "indices", "brackets", "repeat", "comma" ] }, "indices": { "type": "boolean" }, "allowDots": { "type": "boolean" } }, "additionalProperties": false, "description": "qs 配置项" }, "silent": { "type": "boolean", "description": "autoFill 是否显示自动填充错误提示" }, "messages": { "type": "object", "properties": { "success": { "type": "string" }, "failed": { "type": "string" } }, "additionalProperties": false, "description": "提示信息" } }, "required": [ "url" ], "additionalProperties": false }, "BaseApi": { "anyOf": [ { "$ref": "#/definitions/BaseApiObject" }, { "type": "string" } ] }, "CalendarSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "calendar", "description": "指定为日历选择控件" }, "schedules": { "anyOf": [ { "type": "array", "items": { "type": "object", "properties": { "startTime": { "type": "string" }, "endTime": { "type": "string" }, "content": {}, "className": { "type": "string" } }, "required": [ "startTime", "endTime", "content" ], "additionalProperties": false } }, { "type": "string" } ], "description": "日程" }, "scheduleClassNames": { "type": "array", "items": { "type": "string" }, "description": "日程显示颜色自定义" }, "scheduleAction": { "$ref": "#/definitions/SchemaObject", "description": "日程点击展示" }, "largeMode": { "type": "boolean", "description": "是否开启放大模式" }, "todayActiveStyle": { "type": "object", "description": "今日激活时的自定义样式" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "calendar" }, "testid": true, "schedules": true, "scheduleClassNames": true, "scheduleAction": true, "largeMode": true, "todayActiveStyle": true }, "required": [ "type" ] }, "CardSchema": { "allOf": [ { "$ref": "#/definitions/CardSchemaWithoutType", "additionalProperties": true }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "card" }, "testid": true, "header": true, "body": true, "media": true, "actions": true, "toolbar": true, "secondary": true, "useCardLabel": true }, "required": [ "type" ], "description": "Card 卡片渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/card" }, "CardSchemaWithoutType": { "type": "object", "properties": { "header": { "type": "object", "properties": { "className": { "$ref": "#/definitions/SchemaClassName" }, "title": { "$ref": "#/definitions/SchemaTpl", "description": "标题" }, "titleClassName": { "$ref": "#/definitions/SchemaClassName" }, "subTitle": { "$ref": "#/definitions/SchemaCollection", "description": "副标题" }, "subTitleClassName": { "$ref": "#/definitions/SchemaClassName" }, "subTitlePlaceholder": { "type": "string" }, "description": { "$ref": "#/definitions/SchemaTpl", "description": "描述" }, "descriptionPlaceholder": { "type": "string", "description": "描述占位内容" }, "descriptionClassName": { "$ref": "#/definitions/SchemaClassName", "description": "描述占位类名" }, "desc": { "$ref": "#/definitions/SchemaTpl", "deprecated": "建议用 description" }, "descPlaceholder": { "$ref": "#/definitions/SchemaTpl", "deprecated": "建议用 descriptionPlaceholder" }, "descClassName": { "$ref": "#/definitions/SchemaClassName", "deprecated": "建议用 descriptionClassName" }, "avatar": { "$ref": "#/definitions/SchemaUrlPath", "description": "图片地址" }, "avatarText": { "$ref": "#/definitions/SchemaTpl" }, "avatarTextBackground": { "type": "array", "items": { "type": "object", "properties": { "length": { "type": "number" } }, "required": [ "length" ], "additionalProperties": { "type": "string" } } }, "avatarTextClassName": { "$ref": "#/definitions/SchemaClassName" }, "avatarClassName": { "$ref": "#/definitions/SchemaClassName", "description": "图片包括层类名" }, "imageClassName": { "$ref": "#/definitions/SchemaClassName", "description": "图片类名。" }, "highlight": { "$ref": "#/definitions/SchemaExpression", "description": "是否点亮" }, "highlightClassName": { "$ref": "#/definitions/SchemaClassName" }, "href": { "$ref": "#/definitions/SchemaTpl", "description": "链接地址" }, "blank": { "type": "boolean", "description": "是否新窗口打开" } }, "additionalProperties": false, "description": "头部配置" }, "body": { "type": "array", "items": { "$ref": "#/definitions/CardBodyField" }, "description": "内容区域" }, "media": { "type": "object", "properties": { "className": { "$ref": "#/definitions/SchemaClassName" }, "type": { "type": "string", "enum": [ "image", "video" ], "description": "多媒体类型" }, "url": { "$ref": "#/definitions/SchemaUrlPath", "description": "多媒体链接地址" }, "position": { "type": "string", "enum": [ "top", "left", "right", "bottom" ], "description": "多媒体区域位置" }, "autoPlay": { "type": "boolean", "description": "类型为video时是否自动播放" }, "isLive": { "type": "boolean", "description": "类型为video时是否是直播" }, "poster": { "$ref": "#/definitions/SchemaUrlPath", "description": "类型为video时视频封面" } }, "additionalProperties": false, "description": "多媒体区域" }, "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "底部按钮集合。" }, "toolbar": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "工具栏按钮" }, "secondary": { "$ref": "#/definitions/SchemaTpl", "description": "次要说明" }, "useCardLabel": { "type": "boolean", "description": "卡片内容区的表单项label是否使用Card内部的样式,默认为true" } }, "additionalProperties": false }, "CardBodyField": { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "type": "object", "properties": { "label": { "type": "string", "description": "列标题" }, "labelClassName": { "$ref": "#/definitions/SchemaClassName", "description": "label 类名" }, "name": { "type": "string", "description": "绑定字段名" }, "popOver": { "$ref": "#/definitions/SchemaPopOver", "description": "配置查看详情功能" }, "quickEdit": { "$ref": "#/definitions/SchemaQuickEdit", "description": "配置快速编辑功能" }, "copyable": { "$ref": "#/definitions/SchemaCopyable", "description": "配置点击复制功能" } }, "required": [ "label" ], "additionalProperties": true } ] }, "SchemaPopOver": { "anyOf": [ { "type": "boolean" }, { "$ref": "#/definitions/SchemaPopOverObject" } ] }, "SchemaPopOverObject": { "type": "object", "properties": { "className": { "type": "string", "description": "类名" }, "popOverClassName": { "type": "string", "description": "弹框外层类名" }, "popOverEnableOn": { "$ref": "#/definitions/SchemaExpression", "description": "配置当前行是否启动,要用表达式" }, "mode": { "type": "string", "enum": [ "dialog", "drawer", "popOver" ], "description": "弹出模式" }, "size": { "type": "string", "enum": [ "sm", "md", "lg", "xl" ], "description": "是弹窗形式的时候有用。" }, "position": { "type": "string", "enum": [ "center", "left-top", "left-top-left-top", "left-top-left-center", "left-top-left-bottom", "left-top-center-top", "left-top-center-center", "left-top-center-bottom", "left-top-right-top", "left-top-right-center", "left-top-right-bottom", "right-top", "right-top-left-top", "right-top-left-center", "right-top-left-bottom", "right-top-center-top", "right-top-center-center", "right-top-center-bottom", "right-top-right-top", "right-top-right-center", "right-top-right-bottom", "left-bottom", "left-bottom-left-top", "left-bottom-left-center", "left-bottom-left-bottom", "left-bottom-center-top", "left-bottom-center-center", "left-bottom-center-bottom", "left-bottom-right-top", "left-bottom-right-center", "left-bottom-right-bottom", "right-bottom", "right-bottom-left-top", "right-bottom-left-center", "right-bottom-left-bottom", "right-bottom-center-top", "right-bottom-center-center", "right-bottom-center-bottom", "right-bottom-right-top", "right-bottom-right-center", "right-bottom-right-bottom", "fixed-center", "fixed-left-top", "fixed-right-top", "fixed-left-bottom", "fixed-right-bottom" ], "description": "弹出位置" }, "trigger": { "type": "string", "enum": [ "click", "hover" ], "description": "触发条件,默认是 click" }, "showIcon": { "type": "boolean", "description": "是否显示查看更多的 icon,通常是放大图标。" }, "offset": { "type": "object", "properties": { "top": { "type": "number" }, "left": { "type": "number" } }, "additionalProperties": false, "description": "偏移量" }, "title": { "type": "string", "description": "标题" }, "body": { "$ref": "#/definitions/SchemaCollection" } }, "additionalProperties": false }, "SchemaQuickEdit": { "anyOf": [ { "type": "boolean" }, { "$ref": "#/definitions/SchemaQuickEditObject" } ] }, "SchemaQuickEditObject": { "anyOf": [ { "allOf": [ { "type": "object", "properties": { "saveImmediately": { "type": "boolean", "description": "是否立即保存" }, "resetOnFailed": { "type": "boolean", "description": "接口保存失败后,是否重置组件编辑状态" }, "reload": { "type": "string", "description": "配置刷新目标,默认就会刷新所属 crud 组件, 如果不需要,请配置为 \"none\"" }, "mode": { "type": "string", "const": "inline", "description": "是否直接内嵌" }, "icon": { "type": "string", "description": "配置按钮图标" } }, "additionalProperties": true }, { "$ref": "#/definitions/SchemaObjectLoose" } ] }, { "type": "object", "properties": { "saveImmediately": { "type": "boolean", "description": "是否立即保存" }, "resetOnFailed": { "type": "boolean", "description": "接口保存失败后,是否重置组件编辑状态" }, "reload": { "type": "string", "description": "配置刷新目标,默认就会刷新所属 crud 组件, 如果不需要,请配置为 \"none\"" }, "mode": { "type": "string", "const": "inline", "description": "是否直接内嵌" }, "icon": { "type": "string", "description": "配置按钮图标" }, "body": { "$ref": "#/definitions/SchemaCollection" } }, "required": [ "body" ], "additionalProperties": false } ] }, "SchemaCopyable": { "anyOf": [ { "type": "boolean" }, { "$ref": "#/definitions/SchemaCopyableObject" } ] }, "SchemaCopyableObject": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/SchemaIcon", "description": "可以配置图标" }, "content": { "$ref": "#/definitions/SchemaTpl", "description": "配置复制时的内容模板。" }, "tooltip": { "type": "string", "description": "提示文字内容" } }, "additionalProperties": false }, "CardsSchema": { "allOf": [ { "$ref": "#/definitions/BaseCardsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "cards" }, "testid": true, "card": true, "headerClassName": true, "footerClassName": true, "itemClassName": true, "placeholder": true, "showFooter": true, "showHeader": true, "source": true, "title": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "header": true, "footer": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "masonryLayout": true, "valueField": true }, "required": [ "type" ] }, "BaseCardsSchema": { "allOf": [ { "type": "object", "properties": { "card": { "anyOf": [ { "$ref": "#/definitions/CardSchemaWithoutType" }, { "$ref": "#/definitions/Card2Schema" } ] }, "headerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "头部 CSS 类名" }, "footerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "底部 CSS 类名" }, "itemClassName": { "$ref": "#/definitions/SchemaClassName", "description": "卡片 CSS 类名", "default": "Grid-col--xs12 Grid-col--sm6 Grid-col--md4 Grid-col--lg3" }, "placeholder": { "$ref": "#/definitions/SchemaTpl", "description": "无数据提示", "default": "暂无数据" }, "showFooter": { "type": "boolean", "description": "是否显示底部" }, "showHeader": { "type": "boolean", "description": "是否显示头部" }, "source": { "$ref": "#/definitions/SchemaTokenizeableString", "description": "数据源: 绑定当前环境变量", "default": "${items}" }, "title": { "$ref": "#/definitions/SchemaTpl", "description": "标题" }, "hideCheckToggler": { "type": "boolean", "description": "是否隐藏勾选框" }, "affixHeader": { "type": "boolean", "description": "是否固顶" }, "affixFooter": { "type": "boolean", "description": "是否固底" }, "header": { "$ref": "#/definitions/SchemaCollection", "description": "顶部区域" }, "footer": { "$ref": "#/definitions/SchemaCollection", "description": "底部区域" }, "itemCheckableOn": { "$ref": "#/definitions/SchemaExpression", "description": "配置某项是否可以点选" }, "itemDraggableOn": { "$ref": "#/definitions/SchemaExpression", "description": "配置某项是否可拖拽排序,前提是要开启拖拽功能" }, "checkOnItemClick": { "type": "boolean", "description": "点击卡片的时候是否勾选卡片。" }, "masonryLayout": { "type": "boolean", "description": "是否为瀑布流布局?" }, "valueField": { "type": "string", "description": "可以用来作为值的字段" } } }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "card": true, "headerClassName": true, "footerClassName": true, "itemClassName": true, "placeholder": true, "showFooter": true, "showHeader": true, "source": true, "title": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "header": true, "footer": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "masonryLayout": true, "valueField": true }, "description": "Cards 卡片集合渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/cards" }, "Card2Schema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "card2", "description": "指定为 card2 类型" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容" }, "bodyClassName": { "$ref": "#/definitions/SchemaClassName", "description": "body 类名" }, "style": { "type": "object", "description": "自定义样式" }, "hideCheckToggler": { "type": "boolean", "description": "隐藏选框" }, "checkOnItemClick": { "type": "boolean", "description": "不配置href且cards容器下生效,点击整个卡片触发选中" }, "wrapperComponent": { "type": "string", "description": "渲染标签" } }, "required": [ "type", "body", "checkOnItemClick" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "card2" }, "testid": true, "body": true, "bodyClassName": true, "hideCheckToggler": true, "checkOnItemClick": true, "wrapperComponent": true }, "required": [ "type", "body", "checkOnItemClick" ], "description": "Card2 新卡片渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/card2" }, "SpinnerExtraProps": { "type": "object", "properties": { "loadingConfig": { "type": "object", "properties": { "root": { "type": "string" }, "show": { "type": "boolean" } }, "additionalProperties": false } }, "additionalProperties": false }, "CarouselSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "carousel", "description": "指定为轮播图类型" }, "direction": { "type": "string", "enum": [ "horizontal", "vertical" ], "description": "轮播图方向,默认为水平方向" }, "loop": { "type": "boolean", "description": "是否循环播放, 默认为 true。" }, "mouseEvent": { "type": "boolean", "description": "是否支持鼠标事件 默认为 true。" }, "auto": { "type": "boolean", "description": "是否自动播放" }, "interval": { "type": [ "number", "string" ], "description": "轮播间隔时间" }, "duration": { "type": "number", "description": "动画时长" }, "width": { "type": [ "number", "string" ], "description": "设置宽度" }, "height": { "type": [ "number", "string" ], "description": "设置高度" }, "controlsTheme": { "type": "string", "enum": [ "light", "dark" ] }, "placeholder": { "type": "string", "description": "占位" }, "controls": { "type": "array", "items": { "type": "string", "enum": [ "dots", "arrows" ] }, "description": "配置控件内容" }, "animation": { "type": "string", "enum": [ "fade", "slide", "marquee" ], "description": "动画类型" }, "itemSchema": { "$ref": "#/definitions/SchemaCollection", "description": "配置单条呈现模板" }, "name": { "$ref": "#/definitions/SchemaName" }, "thumbMode": { "type": "string", "enum": [ "contain", "cover" ], "description": "预览图模式" }, "options": { "type": "array", "items": {}, "description": "配置固定值" }, "alwaysShowArrow": { "type": "boolean", "description": "是否一直显示箭头" }, "multiple": { "type": "object", "properties": { "count": { "type": "number" } }, "required": [ "count" ], "additionalProperties": false, "description": "多图模式配置项" }, "icons": { "type": "object", "properties": { "prev": { "$ref": "#/definitions/SchemaCollection" }, "next": { "$ref": "#/definitions/SchemaCollection" } }, "additionalProperties": false, "description": "自定义箭头图标" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "carousel" }, "testid": true, "direction": true, "loop": true, "mouseEvent": true, "auto": true, "interval": true, "duration": true, "width": true, "height": true, "controlsTheme": true, "placeholder": true, "controls": true, "animation": true, "itemSchema": true, "name": true, "thumbMode": true, "options": true, "alwaysShowArrow": true, "multiple": true, "icons": true }, "required": [ "type" ], "description": "Carousel 轮播图渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/carousel" }, "ChartSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "chart", "description": "指定为 chart 类型" }, "chartTheme": { "description": "Chart 主题配置" }, "api": { "$ref": "#/definitions/SchemaApi", "description": "图表配置接口" }, "initFetch": { "type": "boolean", "description": "是否初始加载。", "deprecated": "建议直接配置 api 的 sendOn" }, "initFetchOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否初始加载用表达式来配置", "deprecated": "建议用 api.sendOn 属性。" }, "config": { "description": "配置echart的config,支持数据映射。如果用了数据映射,为了同步更新,请设置 trackExpression" }, "trackExpression": { "type": "string", "description": "跟踪表达式,如果这个表达式的运行结果发生变化了,则会更新 Echart,当 config 中用了数据映射时有用。" }, "width": { "type": [ "number", "string" ], "description": "宽度设置" }, "height": { "type": [ "number", "string" ], "description": "高度设置" }, "interval": { "type": "number", "description": "刷新时间" }, "name": { "$ref": "#/definitions/SchemaName" }, "style": { "type": "object", "description": "style样式" }, "dataFilter": { "$ref": "#/definitions/SchemaFunction" }, "source": { "$ref": "#/definitions/SchemaTokenizeableString" }, "disableDataMapping": { "type": "boolean", "description": "默认开启 Config 中的数据映射,如果想关闭,请开启此功能。" }, "clickAction": { "$ref": "#/definitions/ActionSchema", "description": "点击行为配置,可以用来满足下钻操作等。" }, "replaceChartOption": { "type": "boolean", "description": "默认配置时追加的,如果更新配置想完全替换配置请配置为 true." }, "unMountOnHidden": { "type": "boolean", "description": "不可见的时候隐藏" }, "mapURL": { "$ref": "#/definitions/SchemaApi", "description": "获取 geo json 文件的地址" }, "mapName": { "type": "string", "description": "地图名称" }, "loadBaiduMap": { "type": "boolean", "description": "加载百度地图" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "chart" }, "testid": true, "chartTheme": true, "api": true, "initFetch": true, "initFetchOn": true, "config": true, "trackExpression": true, "width": true, "height": true, "interval": true, "name": true, "dataFilter": true, "source": true, "disableDataMapping": true, "clickAction": true, "replaceChartOption": true, "unMountOnHidden": true, "mapURL": true, "mapName": true, "loadBaiduMap": true }, "required": [ "type" ], "description": "Chart 图表渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/chart" }, "SchemaFunction": { "type": "string" }, "CollapseSchema": { "allOf": [ { "$ref": "#/definitions/BaseCollapseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "collapse" }, "testid": true, "key": true, "headerPosition": true, "header": true, "bodyClassName": true, "collapsable": true, "collapsed": true, "showArrow": true, "expandIcon": true, "headingClassName": true, "collapseHeader": true, "size": true, "mountOnEnter": true, "unmountOnExit": true, "divideLine": true, "body": true }, "required": [ "type", "body" ], "description": "Collapse 折叠渲染器,格式说明。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/collapse" }, "BaseCollapseSchema": { "allOf": [ { "type": "object", "properties": { "key": { "type": "string", "description": "标识" }, "headerPosition": { "type": "string", "enum": [ "top", "bottom" ], "description": "标题展示位置" }, "header": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaCollection" } ], "description": "标题" }, "bodyClassName": { "type": "string", "description": "配置 Body 容器 className" }, "disabled": { "type": "boolean", "description": "是否禁用" }, "collapsable": { "type": "boolean", "description": "是否可折叠" }, "collapsed": { "type": "boolean", "description": "默认是否折叠" }, "showArrow": { "type": "boolean", "description": "图标是否展示" }, "expandIcon": { "$ref": "#/definitions/SchemaObject", "description": "自定义切换图标" }, "headingClassName": { "type": "string", "description": "标题 CSS 类名" }, "collapseHeader": { "$ref": "#/definitions/SchemaTpl", "description": "收起的标题" }, "size": { "type": "string", "enum": [ "xs", "sm", "md", "lg", "base" ], "description": "控件大小" }, "mountOnEnter": { "type": "boolean", "description": "点开时才加载内容" }, "unmountOnExit": { "type": "boolean", "description": "卡片隐藏就销毁内容。" }, "divideLine": { "type": "boolean", "description": "标题内容分割线" } } }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "key": true, "headerPosition": true, "header": true, "bodyClassName": true, "collapsable": true, "collapsed": true, "showArrow": true, "expandIcon": true, "headingClassName": true, "collapseHeader": true, "size": true, "mountOnEnter": true, "unmountOnExit": true, "divideLine": true } }, "CollapseGroupSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "collapse-group", "description": "指定为折叠器类型" }, "activeKey": { "anyOf": [ { "type": "array", "items": { "type": [ "string", "number" ] } }, { "type": "string" }, { "type": "number" } ], "description": "激活面板" }, "accordion": { "type": "boolean", "description": "手风琴模式" }, "expandIcon": { "$ref": "#/definitions/SchemaObject", "description": "自定义切换图标" }, "expandIconPosition": { "type": "string", "enum": [ "left", "right" ], "description": "设置图标位置" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "enableFieldSetStyle": { "type": "boolean", "description": "当Collapse作为Form组件的子元素时,开启该属性后组件样式设置为FieldSet组件的样式,默认开启" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "collapse-group" }, "testid": true, "activeKey": true, "accordion": true, "expandIcon": true, "expandIconPosition": true, "body": true, "enableFieldSetStyle": true }, "required": [ "type" ], "description": "CollapseGroup 折叠渲染器,格式说明。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/collapse" }, "ColorSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "color", "description": "指定为颜色显示控件" }, "defaultColor": { "type": "string", "description": "默认颜色" }, "showValue": { "type": "boolean", "description": "是否用文字显示值。" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "color" }, "testid": true, "defaultColor": true, "showValue": true }, "required": [ "type" ], "description": "Color 显示渲染器,格式说明。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/color" }, "ContainerSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "container", "description": "指定为 container 类型" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容" }, "bodyClassName": { "$ref": "#/definitions/SchemaClassName", "description": "body 类名" }, "style": { "type": "object", "description": "自定义样式" }, "wrapperComponent": { "type": "string", "description": "使用的标签" }, "wrapperBody": { "type": "boolean", "description": "是否需要对body加一层div包裹,默认为 true" }, "draggable": { "type": [ "boolean", "string" ], "description": "是否开启容器拖拽" }, "draggableConfig": { "anyOf": [ { "$ref": "#/definitions/ContainerDraggableConfig" }, { "type": "string" } ], "description": "是否开启容器拖拽配置" } }, "required": [ "type", "body", "draggableConfig" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "container" }, "testid": true, "body": true, "bodyClassName": true, "wrapperComponent": true, "wrapperBody": true, "draggable": true, "draggableConfig": true }, "required": [ "type", "body", "draggableConfig" ], "description": "Container 容器渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/container" }, "ContainerDraggableConfig": { "type": "object", "properties": { "axis": { "type": "string", "enum": [ "both", "x", "y" ], "description": "可拖拽的方向, 默认为所有方向, 支持设置为X或Y轴" }, "defaultPosition": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "required": [ "x", "y" ], "additionalProperties": false, "description": "元素的起始位置" }, "bounds": { "anyOf": [ { "type": "object", "properties": { "left": { "type": "number" }, "right": { "type": "number" }, "top": { "type": "number" }, "bottom": { "type": "number" } }, "additionalProperties": false }, { "type": "string" } ], "description": "拖拽的边界, 可以设置坐标, 也可以设置父级元素的选择器" }, "grid": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2, "description": "以网格模式拖拽的步长" }, "handle": { "type": "string", "description": "初始化拖拽的选择器" }, "cancel": { "type": "string", "description": "禁止拖拽的选择器" }, "scale": { "type": "number", "description": "拖拽距离的缩放比, 默认为1" }, "enableUserSelect": { "type": "boolean", "description": "默认设置容器内部为'user-select:none', 可以设置true关闭" } }, "additionalProperties": false, "description": "容器拖拽配置" }, "SwitchContainerSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "switch-container", "description": "指定为 container 类型" }, "items": { "type": "array", "items": { "$ref": "#/definitions/StateSchema" }, "description": "状态项列表" }, "style": { "type": "object", "description": "自定义样式" } }, "required": [ "type", "items" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "switch-container" }, "testid": true, "items": true }, "required": [ "type", "items" ], "description": "SwitchContainer 状态容器渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/state-container" }, "StateSchema": { "allOf": [ { "type": "object", "properties": { "title": { "type": "string", "description": "状态标题" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容" }, "visibleOn": { "type": "string", "description": "显示条件" } } }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "body": true } }, "CRUDSchema": { "if": { "required": [ "mode" ] }, "then": { "allOf": [ { "if": { "properties": { "mode": { "type": "string", "const": "cards" } }, "required": [ "mode" ] }, "then": { "$ref": "#/definitions/CRUDCardsSchema" } }, { "if": { "properties": { "mode": { "type": "string", "const": "list" } }, "required": [ "mode" ] }, "then": { "$ref": "#/definitions/CRUDListSchema" } }, { "if": { "properties": { "mode": { "type": "string", "const": "table" } }, "required": [ "mode" ] }, "then": { "$ref": "#/definitions/CRUDTableSchema" } } ] }, "else": { "$ref": "#/definitions/CRUDTableSchema" } }, "CRUDCardsSchema": { "allOf": [ { "$ref": "#/definitions/CRUDCommonSchemaWithoutType", "additionalProperties": true }, { "$ref": "#/definitions/BaseCardsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "crud" }, "testid": true, "card": true, "headerClassName": true, "footerClassName": true, "itemClassName": true, "placeholder": true, "showFooter": true, "showHeader": true, "source": true, "title": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "header": true, "footer": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "masonryLayout": true, "valueField": true, "mode": { "type": "string", "const": "cards" }, "api": true, "deferApi": true, "bulkActions": true, "itemActions": true, "perPage": true, "orderBy": true, "orderDir": true, "defaultParams": true, "draggable": true, "draggableOn": true, "name": true, "filter": true, "initFetch": true, "initFetchOn": true, "innerClassName": true, "interval": true, "orderField": true, "pageField": true, "perPageField": true, "pageDirectionField": true, "totalField": true, "quickSaveApi": true, "quickSaveItemApi": true, "saveOrderApi": true, "syncLocation": true, "toolbar": true, "toolbarInline": true, "headerToolbar": true, "footerToolbar": true, "perPageAvailable": true, "messages": true, "hideQuickSaveBtn": true, "autoJumpToTopOnPagerChange": true, "silentPolling": true, "stopAutoRefreshWhen": true, "stopAutoRefreshWhenModalIsOpen": true, "filterTogglable": true, "filterDefaultVisible": true, "syncResponse2Query": true, "keepItemSelectionOnPageChange": true, "maxKeepItemSelectionLength": true, "labelTpl": true, "loadDataOnce": true, "loadDataOnceFetchOnFilter": true, "matchFunc": true, "expandConfig": true, "alwaysShowPagination": true, "autoGenerateFilter": true, "autoFillHeight": true, "parsePrimitiveQuery": true, "selectable": true, "multiple": true, "loadMoreProps": true }, "required": [ "mode", "type" ] }, "CRUDCommonSchemaWithoutType": { "type": "object", "properties": { "mode": { "type": "string", "enum": [ "table", "grid", "cards", "list" ], "description": "指定内容区的展示模式。" }, "api": { "$ref": "#/definitions/SchemaApi", "description": "初始化数据 API" }, "deferApi": { "$ref": "#/definitions/SchemaApi", "description": "懒加载 API,当行数据中用 defer: true 标记了,则其孩子节点将会用这个 API 来拉取数据。" }, "bulkActions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "批量操作" }, "itemActions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "单条操作" }, "perPage": { "type": "number", "description": "每页个数,默认为 10,如果不是请设置。", "default": 10 }, "orderBy": { "type": "string", "description": "默认排序字段" }, "orderDir": { "type": "string", "enum": [ "asc", "desc" ], "description": "默认排序方向" }, "defaultParams": { "$ref": "#/definitions/PlainObject", "description": "可以默认给定初始参数如: {\\\"perPage\\\": 24}" }, "draggable": { "type": "boolean", "description": "是否可通过拖拽排序" }, "draggableOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否可通过拖拽排序,通过表达式来配置" }, "name": { "$ref": "#/definitions/SchemaName" }, "filter": { "description": "过滤器表单" }, "initFetch": { "type": "boolean", "description": "初始是否拉取", "deprecated": "建议用 api 的 sendOn 代替。" }, "initFetchOn": { "$ref": "#/definitions/SchemaExpression", "description": "初始是否拉取,用表达式来配置。", "deprecated": "建议用 api 的 sendOn 代替。" }, "innerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置内部 DOM 的 className" }, "interval": { "type": "number", "description": "设置自动刷新时间" }, "orderField": { "type": "string", "description": "设置用来确定位置的字段名,设置后新的顺序将被赋值到该字段中。" }, "pageField": { "type": "string", "description": "设置分页页码字段名。", "default": "page" }, "perPageField": { "type": "string", "description": "设置分页一页显示的多少条数据的字段名。", "default": "perPage" }, "pageDirectionField": { "type": "string", "description": "设置分页方向的字段名。单位简单分页时清楚时向前还是向后翻页。", "default": "pageDir" }, "totalField": { "type": "string", "description": "设置总条数的字段名。" }, "quickSaveApi": { "$ref": "#/definitions/SchemaApi", "description": "快速编辑后用来批量保存的 API" }, "quickSaveItemApi": { "$ref": "#/definitions/SchemaApi", "description": "快速编辑配置成及时保存时使用的 API" }, "saveOrderApi": { "$ref": "#/definitions/SchemaApi", "description": "保存排序的 api" }, "syncLocation": { "type": "boolean", "description": "是否将过滤条件的参数同步到地址栏,默认为true", "default": true }, "toolbar": { "$ref": "#/definitions/SchemaCollection" }, "toolbarInline": { "type": "boolean", "description": "工具栏是否为 inline 模式" }, "headerToolbar": { "type": "array", "items": { "anyOf": [ { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "$ref": "#/definitions/CRUDToolbarObject", "additionalProperties": true } ] }, { "type": "object", "additionalProperties": false, "properties": { "align": { "type": "string", "enum": [ "left", "right" ], "description": "对齐方式" }, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true }, "required": [ "type" ] }, { "$ref": "#/definitions/CRUDBultinToolbarType" } ] }, "description": "顶部工具栏" }, "footerToolbar": { "type": "array", "items": { "anyOf": [ { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "$ref": "#/definitions/CRUDToolbarObject", "additionalProperties": true } ] }, { "type": "object", "additionalProperties": false, "properties": { "align": { "type": "string", "enum": [ "left", "right" ], "description": "对齐方式" }, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true }, "required": [ "type" ] }, { "$ref": "#/definitions/CRUDBultinToolbarType" } ] }, "description": "底部工具栏" }, "perPageAvailable": { "type": "array", "items": { "type": "number" }, "description": "每页显示多少个空间成员的配置如: [10, 20, 50, 100]。" }, "messages": { "$ref": "#/definitions/SchemaMessage" }, "hideQuickSaveBtn": { "type": "boolean", "description": "是否隐藏快速编辑的按钮。" }, "autoJumpToTopOnPagerChange": { "type": "boolean", "description": "是否自动跳顶部,当切分页的时候。" }, "silentPolling": { "type": "boolean", "description": "静默拉取" }, "stopAutoRefreshWhen": { "$ref": "#/definitions/SchemaExpression" }, "stopAutoRefreshWhenModalIsOpen": { "type": "boolean" }, "filterTogglable": { "anyOf": [ { "type": "boolean" }, { "type": "object", "properties": { "label": { "type": "string" }, "activeLabel": { "type": "string" }, "icon": { "type": "string" }, "activeIcon": { "type": "string" } }, "additionalProperties": false } ] }, "filterDefaultVisible": { "type": "boolean" }, "syncResponse2Query": { "type": "boolean", "description": "是否将接口返回的内容自动同步到地址栏,前提是开启了同步地址栏。" }, "keepItemSelectionOnPageChange": { "type": "boolean", "description": "分页的时候是否保留用户选择。" }, "maxKeepItemSelectionLength": { "type": "number", "description": "当开启 keepItemSelectionOnPageChange 时,最大保留已勾选项的数量。" }, "labelTpl": { "$ref": "#/definitions/SchemaTpl", "description": "当配置 keepItemSelectionOnPageChange 时有用,用来配置已勾选项的文案。" }, "loadDataOnce": { "type": "boolean", "description": "是否为前端单次加载模式,可以用来实现前端分页。" }, "loadDataOnceFetchOnFilter": { "type": "boolean", "description": "在开启loadDataOnce时,当修改过滤条件时是否重新请求api\n\n如果没有配置,当查询条件表单触发的会重新请求 api,当是列过滤或者是 search-box 触发的则不重新请求 api 如果配置为 true,则不管是什么触发都会重新请求 api 如果配置为 false 则不管是什么触发都不会重新请求 api" }, "matchFunc": { "anyOf": [ { "type": "string" }, {} ], "description": "自定义搜索匹配函数,当开启loadDataOnce时,会基于该函数计算的匹配结果进行过滤,主要用于处理列字段类型较为复杂或者字段值格式和后端返回不一致的场景\n\n参数说明\n\n * `items` 当前表格数据 * `itemsRaw` 当前表格数据(未处理) * `options` 配置 * `options.query` 查询条件 * `options.columns` 列配置 * `options.matchSorter` 系统默认的排序方法" }, "source": { "$ref": "#/definitions/SchemaTokenizeableString", "description": "也可以直接从环境变量中读取,但是不太推荐。" }, "expandConfig": { "type": "object", "properties": { "expand": { "type": "string", "enum": [ "first", "all", "none" ], "description": "默认是展开第一个、所有、还是都不展开。" }, "expandAll": { "type": "boolean", "description": "是否显示全部切换按钮" }, "accordion": { "type": "boolean", "description": "是否为手风琴模式" } }, "additionalProperties": false, "description": "如果时内嵌模式,可以通过这个来配置默认的展开选项。" }, "alwaysShowPagination": { "type": "boolean", "description": "默认只有当分页数大于 1 是才显示,如果总是想显示请配置。" }, "autoGenerateFilter": { "anyOf": [ { "$ref": "#/definitions/AutoGenerateFilterObject" }, { "type": "boolean" } ], "description": "开启查询区域,会根据列元素的searchable属性值,自动生成查询条件表单" }, "autoFillHeight": { "anyOf": [ { "type": "boolean" }, { "type": "object", "properties": { "height": { "type": "number" }, "maxHeight": { "type": "number" } }, "required": [ "height", "maxHeight" ], "additionalProperties": false } ], "description": "内容区域占满屏幕剩余空间" }, "parsePrimitiveQuery": { "anyOf": [ { "type": "object", "properties": { "enable": { "type": "boolean" }, "types": { "type": "array", "items": { "type": "string", "enum": [ "boolean", "number" ] } } }, "required": [ "enable" ], "additionalProperties": false }, { "type": "boolean" } ], "description": "是否开启Query信息转换,开启后将会对url中的Query进行转换,默认开启,默认仅转化布尔值" }, "selectable": { "type": "boolean", "description": "是否开启行选择功能, 默认为 false 开启后将支持行选择功能,需要结合事件动作使用" }, "multiple": { "type": "boolean", "description": "控制是否多选,默认为 false" }, "loadMoreProps": { "type": "object", "properties": { "showIcon": { "type": "boolean" }, "showText": { "type": "boolean" }, "color": { "type": "string" }, "iconType": { "type": "string" }, "contentText": { "type": "object", "properties": { "contentdown": { "type": "string" }, "contentrefresh": { "type": "string" }, "contentnomore": { "type": "string" } }, "required": [ "contentdown", "contentrefresh", "contentnomore" ], "additionalProperties": false }, "minLoadingTime": { "type": "number" }, "dataAppendTo": { "type": "string", "enum": [ "top", "bottom" ] } }, "additionalProperties": false, "description": "加载更多配置" } }, "additionalProperties": false }, "PlainObject": { "type": "object" }, "CRUDToolbarObject": { "type": "object", "properties": { "align": { "type": "string", "enum": [ "left", "right" ], "description": "对齐方式" } }, "additionalProperties": false }, "CRUDBultinToolbarType": { "type": "string", "enum": [ "columns-toggler", "drag-toggler", "pagination", "bulkActions", "bulk-actions", "statistics", "switch-per-page", "load-more", "filter-toggler", "export-csv", "export-excel" ] }, "SchemaMessage": { "type": "object", "properties": { "fetchFailed": { "type": "string", "description": "获取失败时的提示" }, "fetchSuccess": { "type": "string", "description": "获取成功的提示,默认为空。" }, "saveFailed": { "type": "string", "description": "保存失败时的提示。" }, "saveSuccess": { "type": "string", "description": "保存成功时的提示。" } }, "additionalProperties": false, "description": "消息文案配置,记住这个优先级是最低的,如果你的接口返回了 msg,接口返回的优先。" }, "AutoGenerateFilterObject": { "type": "object", "properties": { "columnsNum": { "type": "number", "description": "过滤条件单行列数" }, "showBtnToolbar": { "type": "boolean", "description": "是否显示设置查询字段" }, "defaultCollapsed": { "type": "boolean", "description": "是否默认收起", "default": true }, "enableBulkActions": { "type": "boolean", "description": "是否启用多选框" }, "enableBulkActionsOn": { "$ref": "#/definitions/SchemaExpression", "description": "启用批量操作的表达式" } }, "additionalProperties": false }, "CRUDListSchema": { "allOf": [ { "$ref": "#/definitions/CRUDCommonSchemaWithoutType", "additionalProperties": true }, { "$ref": "#/definitions/BaseListSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "crud" }, "testid": true, "title": true, "footer": true, "footerClassName": true, "header": true, "headerClassName": true, "listItem": true, "source": true, "showFooter": true, "showHeader": true, "placeholder": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "valueField": true, "size": true, "itemAction": true, "showIndexBar": true, "indexField": true, "indexBarOffset": true, "mode": { "type": "string", "const": "list" }, "api": true, "deferApi": true, "bulkActions": true, "itemActions": true, "perPage": true, "orderBy": true, "orderDir": true, "defaultParams": true, "draggable": true, "draggableOn": true, "name": true, "filter": true, "initFetch": true, "initFetchOn": true, "innerClassName": true, "interval": true, "orderField": true, "pageField": true, "perPageField": true, "pageDirectionField": true, "totalField": true, "quickSaveApi": true, "quickSaveItemApi": true, "saveOrderApi": true, "syncLocation": true, "toolbar": true, "toolbarInline": true, "headerToolbar": true, "footerToolbar": true, "perPageAvailable": true, "messages": true, "hideQuickSaveBtn": true, "autoJumpToTopOnPagerChange": true, "silentPolling": true, "stopAutoRefreshWhen": true, "stopAutoRefreshWhenModalIsOpen": true, "filterTogglable": true, "filterDefaultVisible": true, "syncResponse2Query": true, "keepItemSelectionOnPageChange": true, "maxKeepItemSelectionLength": true, "labelTpl": true, "loadDataOnce": true, "loadDataOnceFetchOnFilter": true, "matchFunc": true, "expandConfig": true, "alwaysShowPagination": true, "autoGenerateFilter": true, "autoFillHeight": true, "parsePrimitiveQuery": true, "selectable": true, "multiple": true, "loadMoreProps": true }, "required": [ "mode", "type" ] }, "BaseListSchema": { "allOf": [ { "type": "object", "properties": { "title": { "$ref": "#/definitions/SchemaTpl", "description": "标题" }, "footer": { "$ref": "#/definitions/SchemaCollection", "description": "底部区域" }, "footerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "底部区域类名" }, "header": { "$ref": "#/definitions/SchemaCollection", "description": "顶部区域" }, "headerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "顶部区域类名" }, "listItem": { "$ref": "#/definitions/ListItemSchema", "description": "单条数据展示内容配置" }, "source": { "$ref": "#/definitions/SchemaTokenizeableString", "description": "数据源: 绑定当前环境变量", "default": "${items}" }, "showFooter": { "type": "boolean", "description": "是否显示底部" }, "showHeader": { "type": "boolean", "description": "是否显示头部" }, "placeholder": { "$ref": "#/definitions/SchemaTpl", "description": "无数据提示", "default": "暂无数据" }, "hideCheckToggler": { "type": "boolean", "description": "是否隐藏勾选框" }, "affixHeader": { "type": "boolean", "description": "是否固顶" }, "affixFooter": { "type": "boolean", "description": "是否固底" }, "itemCheckableOn": { "$ref": "#/definitions/SchemaExpression", "description": "配置某项是否可以点选" }, "itemDraggableOn": { "$ref": "#/definitions/SchemaExpression", "description": "配置某项是否可拖拽排序,前提是要开启拖拽功能" }, "checkOnItemClick": { "type": "boolean", "description": "点击列表单行时,是否选择" }, "valueField": { "type": "string", "description": "可以用来作为值的字段" }, "size": { "type": "string", "enum": [ "sm", "base" ], "description": "大小" }, "itemAction": { "$ref": "#/definitions/ActionSchema", "description": "点击列表项的行为" }, "showIndexBar": { "type": "boolean", "description": "是否显示右侧字母索引条" }, "indexField": { "type": "string", "description": "索引依据字段" }, "indexBarOffset": { "type": "number", "description": "索引条偏移量" } } }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "title": true, "footer": true, "footerClassName": true, "header": true, "headerClassName": true, "listItem": true, "source": true, "showFooter": true, "showHeader": true, "placeholder": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "valueField": true, "size": true, "itemAction": true, "showIndexBar": true, "indexField": true, "indexBarOffset": true }, "description": "List 列表展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/card" }, "ListItemSchema": { "allOf": [ { "type": "object", "properties": { "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" } }, "actionsPosition": { "type": "string", "enum": [ "left", "right" ], "description": "操作位置,默认在右侧,可以设置成左侧。" }, "avatar": { "$ref": "#/definitions/SchemaUrlPath", "description": "图片地址" }, "body": { "type": "array", "items": { "anyOf": [ { "$ref": "#/definitions/ListBodyField" }, { "$ref": "#/definitions/ListBodyFieldObject" } ] }, "description": "内容区域" }, "desc": { "$ref": "#/definitions/SchemaTpl", "description": "描述" }, "remark": { "$ref": "#/definitions/SchemaRemark", "description": "tooltip 说明" }, "title": { "$ref": "#/definitions/SchemaTpl", "description": "标题" }, "subTitle": { "$ref": "#/definitions/SchemaTpl", "description": "副标题" } } }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "actions": true, "actionsPosition": true, "avatar": true, "body": true, "desc": true, "remark": true, "title": true, "subTitle": true } }, "ListBodyField": { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "$ref": "#/definitions/ListBodyFieldObject", "additionalProperties": true } ] }, "ListBodyFieldObject": { "type": "object", "properties": { "label": { "type": "string", "description": "列标题" }, "labelClassName": { "$ref": "#/definitions/SchemaClassName", "description": "label 类名" }, "innerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "内层组件的CSS类名" }, "name": { "type": "string", "description": "绑定字段名" }, "popOver": { "$ref": "#/definitions/SchemaPopOver", "description": "配置查看详情功能" }, "quickEdit": { "$ref": "#/definitions/SchemaQuickEdit", "description": "配置快速编辑功能" }, "copyable": { "$ref": "#/definitions/SchemaCopyable", "description": "配置点击复制功能" } }, "additionalProperties": false, "description": "不指定类型默认就是文本" }, "CRUDTableSchema": { "allOf": [ { "type": "object", "properties": { "mode": { "type": "string", "const": "table", "description": "指定内容区的展示模式。" }, "type": { "type": "string", "const": "crud" } }, "required": [ "type" ] }, { "$ref": "#/definitions/CRUDCommonSchemaWithoutType", "additionalProperties": true }, { "$ref": "#/definitions/BaseTableSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "crud" }, "testid": true, "affixHeader": true, "affixFooter": true, "columns": true, "columnsTogglable": true, "footable": true, "footerClassName": true, "headerClassName": true, "placeholder": true, "showIndex": true, "showFooter": true, "showHeader": true, "source": true, "tableClassName": true, "title": true, "toolbarClassName": true, "combineNum": true, "combineFromIndex": true, "prefixRow": true, "affixRow": true, "resizable": true, "rowClassNameExpr": true, "itemBadge": true, "autoGenerateFilter": true, "canAccessSuperData": true, "autoFillHeight": true, "tableLayout": true, "deferApi": true, "persistKey": true, "mode": { "type": "string", "const": "table" }, "api": true, "bulkActions": true, "itemActions": true, "perPage": true, "orderBy": true, "orderDir": true, "defaultParams": true, "draggable": true, "draggableOn": true, "name": true, "filter": true, "initFetch": true, "initFetchOn": true, "innerClassName": true, "interval": true, "orderField": true, "pageField": true, "perPageField": true, "pageDirectionField": true, "totalField": true, "quickSaveApi": true, "quickSaveItemApi": true, "saveOrderApi": true, "syncLocation": true, "toolbar": true, "toolbarInline": true, "headerToolbar": true, "footerToolbar": true, "perPageAvailable": true, "messages": true, "hideQuickSaveBtn": true, "autoJumpToTopOnPagerChange": true, "silentPolling": true, "stopAutoRefreshWhen": true, "stopAutoRefreshWhenModalIsOpen": true, "filterTogglable": true, "filterDefaultVisible": true, "syncResponse2Query": true, "keepItemSelectionOnPageChange": true, "maxKeepItemSelectionLength": true, "labelTpl": true, "loadDataOnce": true, "loadDataOnceFetchOnFilter": true, "matchFunc": true, "expandConfig": true, "alwaysShowPagination": true, "parsePrimitiveQuery": true, "selectable": true, "multiple": true, "loadMoreProps": true }, "required": [ "type" ] }, "BaseTableSchema": { "allOf": [ { "type": "object", "properties": { "affixHeader": { "type": "boolean", "description": "是否固定表头" }, "affixFooter": { "type": "boolean", "description": "是否固底" }, "columns": { "type": "array", "items": { "$ref": "#/definitions/TableColumn" }, "description": "表格的列信息" }, "columnsTogglable": { "anyOf": [ { "type": "boolean" }, { "type": "string", "const": "auto" } ], "description": "展示列显示开关,自动即:列数量大于或等于5个时自动开启" }, "footable": { "anyOf": [ { "type": "boolean" }, { "type": "object", "properties": { "expand": { "type": "string", "enum": [ "first", "all", "none" ] }, "accordion": { "type": "boolean", "description": "是否为手风琴模式" } }, "additionalProperties": false } ], "description": "是否开启底部展示功能,适合移动端展示" }, "footerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "底部外层 CSS 类名" }, "headerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "顶部外层 CSS 类名" }, "placeholder": { "anyOf": [ { "type": "string" }, { "type": "object", "additionalProperties": { "type": "string" } } ], "description": "占位符" }, "showIndex": { "type": "boolean", "description": "是否显示序号" }, "showFooter": { "type": "boolean", "description": "是否显示底部" }, "showHeader": { "type": "boolean", "description": "是否显示头部" }, "source": { "$ref": "#/definitions/SchemaTokenizeableString", "description": "数据源:绑定当前环境变量" }, "tableClassName": { "$ref": "#/definitions/SchemaClassName", "description": "表格 CSS 类名" }, "title": { "type": "string", "description": "标题" }, "toolbarClassName": { "$ref": "#/definitions/SchemaClassName", "description": "工具栏 CSS 类名" }, "combineNum": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaExpression" } ], "description": "合并单元格配置,配置数字表示从左到右的多少列自动合并单元格。" }, "combineFromIndex": { "type": "number", "description": "合并单元格配置,配置从第几列开始合并。" }, "prefixRow": { "type": "array", "items": { "$ref": "#/definitions/SchemaObject" }, "description": "顶部总结行" }, "affixRow": { "type": "array", "items": { "$ref": "#/definitions/SchemaObject" }, "description": "底部总结行" }, "resizable": { "type": "boolean", "description": "是否可调整列宽" }, "rowClassNameExpr": { "type": "string", "description": "行样式表表达式" }, "itemBadge": { "$ref": "#/definitions/BadgeObject", "description": "行角标" }, "autoGenerateFilter": { "anyOf": [ { "$ref": "#/definitions/AutoGenerateFilterObject" }, { "type": "boolean" } ], "description": "开启查询区域,会根据列元素的searchable属性值,自动生成查询条件表单" }, "canAccessSuperData": { "type": "boolean", "description": "表格是否可以获取父级数据域值,默认为false" }, "autoFillHeight": { "anyOf": [ { "type": "boolean" }, { "type": "object", "properties": { "height": { "type": "number" }, "maxHeight": { "type": "number" } }, "required": [ "height", "maxHeight" ], "additionalProperties": false } ], "description": "表格自动计算高度" }, "tableLayout": { "type": "string", "enum": [ "fixed", "auto" ], "description": "table layout" }, "deferApi": { "$ref": "#/definitions/SchemaApi", "description": "懒加载 API,当行数据中用 defer: true 标记了,则其孩子节点将会用这个 API 来拉取数据。" }, "persistKey": { "type": "string", "description": "持久化 key" } } }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "affixHeader": true, "affixFooter": true, "columns": true, "columnsTogglable": true, "footable": true, "footerClassName": true, "headerClassName": true, "placeholder": true, "showIndex": true, "showFooter": true, "showHeader": true, "source": true, "tableClassName": true, "title": true, "toolbarClassName": true, "combineNum": true, "combineFromIndex": true, "prefixRow": true, "affixRow": true, "resizable": true, "rowClassNameExpr": true, "itemBadge": true, "autoGenerateFilter": true, "canAccessSuperData": true, "autoFillHeight": true, "tableLayout": true, "deferApi": true, "persistKey": true }, "description": "Table 表格渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/table" }, "TableColumn": { "anyOf": [ { "$ref": "#/definitions/TableColumnWithType" }, { "$ref": "#/definitions/TableColumnObject" } ] }, "TableColumnWithType": { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "$ref": "#/definitions/TableColumnObject", "additionalProperties": true } ] }, "TableColumnObject": { "type": "object", "properties": { "label": { "type": "string", "description": "列标题" }, "fixed": { "type": "string", "enum": [ "left", "right", "none" ], "description": "配置是否固定当前列" }, "name": { "type": "string", "description": "绑定字段名" }, "popOver": { "$ref": "#/definitions/SchemaPopOver", "description": "配置查看详情功能" }, "quickEdit": { "$ref": "#/definitions/SchemaQuickEdit", "description": "配置快速编辑功能" }, "quickEditOnUpdate": { "$ref": "#/definitions/SchemaQuickEdit", "description": "作为表单项时,可以单独配置编辑时的快速编辑面板。" }, "copyable": { "$ref": "#/definitions/SchemaCopyable", "description": "配置点击复制功能" }, "sortable": { "type": "boolean", "description": "配置是否可以排序" }, "searchable": { "anyOf": [ { "type": "boolean" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "是否可快速搜索" }, "toggled": { "type": "boolean", "description": "配置是否默认展示" }, "width": { "type": [ "number", "string" ], "description": "列宽度" }, "align": { "type": "string", "enum": [ "left", "right", "center", "justify" ], "description": "列对齐方式" }, "vAlign": { "type": "string", "enum": [ "top", "middle", "bottom" ], "description": "列垂直对齐方式" }, "headerAlign": { "type": "string", "enum": [ "left", "right", "center", "justify" ], "description": "标题左右对齐方式" }, "className": { "type": "string", "description": "列样式表" }, "classNameExpr": { "type": "string", "description": "单元格样式表达式" }, "labelClassName": { "type": "string", "description": "列头样式表" }, "filterable": { "anyOf": [ { "type": "boolean" }, { "type": "object", "properties": { "source": { "type": "string" }, "options": { "type": "array", "items": {} } }, "additionalProperties": false } ], "description": "todo" }, "breakpoint": { "type": "string", "enum": [ "*", "xs", "sm", "md", "lg" ], "description": "结合表格的 footable 一起使用。 填写 *、xs、sm、md、lg指定 footable 的触发条件,可以填写多个用空格隔开" }, "remark": { "$ref": "#/definitions/SchemaRemark", "description": "提示信息" }, "value": { "description": "默认值, 只有在 inputTable 里面才有用" }, "unique": { "type": "boolean", "description": "是否唯一, 只有在 inputTable 里面才有用" }, "canAccessSuperData": { "type": "boolean", "description": "表格列单元格是否可以获取父级数据域值,默认为true,该配置对当前列内单元格生效" }, "lazyRenderAfter": { "type": "number", "description": "当一次性渲染太多列上有用,默认为 100,可以用来提升表格渲染性能", "default": 100 }, "innerStyle": { "type": "object", "description": "单元格内部组件自定义样式 style作为单元格自定义样式的配置" } }, "required": [ "label" ], "description": "表格列,不指定类型时默认为文本类型。" }, "CRUD2Schema": { "allOf": [ { "if": { "properties": { "type": { "type": "string", "const": "crud2" }, "mode": { "type": "string", "const": "cards" } }, "required": [ "type", "mode" ] }, "then": { "$ref": "#/definitions/CRUD2CardsSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "crud2" }, "mode": { "type": "string", "const": "list" } }, "required": [ "type", "mode" ] }, "then": { "$ref": "#/definitions/CRUD2ListSchema" } }, { "if": { "properties": { "type": { "type": "string", "const": "crud2" }, "mode": { "type": "string", "const": "table2" } }, "required": [ "type", "mode" ] }, "then": { "$ref": "#/definitions/CRUD2TableSchema" } } ] }, "CRUD2CardsSchema": { "type": "object", "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "crud2" }, "testid": true, "card": true, "headerClassName": true, "footerClassName": true, "itemClassName": true, "placeholder": true, "showFooter": true, "showHeader": true, "source": true, "title": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "header": true, "footer": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "masonryLayout": true, "valueField": true, "mode": { "type": "string", "const": "cards" }, "api": true, "silentPolling": true, "interval": true, "stopAutoRefreshWhen": true, "loadType": true, "perPage": true, "loadDataOnce": true, "selectable": true, "multiple": true, "showSelection": true, "quickSaveApi": true, "quickSaveItemApi": true, "saveOrderApi": true, "syncLocation": true, "pageField": true, "perPageField": true, "name": true, "hideQuickSaveBtn": true, "autoJumpToTopOnPagerChange": true, "headerToolbar": true, "headerToolbarClassName": true, "footerToolbar": true, "footerToolbarClassName": true, "syncResponse2Query": true, "keepItemSelectionOnPageChange": true, "autoFillHeight": true, "primaryField": true, "parsePrimitiveQuery": true, "pullRefresh": true }, "required": [ "mode", "type" ] }, "CRUD2ListSchema": { "type": "object", "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "crud2" }, "testid": true, "title": true, "footer": true, "footerClassName": true, "header": true, "headerClassName": true, "listItem": true, "source": true, "showFooter": true, "showHeader": true, "placeholder": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "valueField": true, "size": true, "itemAction": true, "showIndexBar": true, "indexField": true, "indexBarOffset": true, "mode": { "type": "string", "const": "list" }, "loadingConfig": true, "api": true, "silentPolling": true, "interval": true, "stopAutoRefreshWhen": true, "loadType": true, "perPage": true, "loadDataOnce": true, "selectable": true, "multiple": true, "showSelection": true, "quickSaveApi": true, "quickSaveItemApi": true, "saveOrderApi": true, "syncLocation": true, "pageField": true, "perPageField": true, "name": true, "hideQuickSaveBtn": true, "autoJumpToTopOnPagerChange": true, "headerToolbar": true, "headerToolbarClassName": true, "footerToolbar": true, "footerToolbarClassName": true, "syncResponse2Query": true, "keepItemSelectionOnPageChange": true, "autoFillHeight": true, "primaryField": true, "parsePrimitiveQuery": true, "pullRefresh": true }, "required": [ "mode", "type" ] }, "CRUD2TableSchema": { "type": "object", "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "crud2" }, "testid": true, "title": true, "source": true, "columnsTogglable": true, "columns": true, "rowSelection": true, "expandable": true, "sticky": true, "loading": true, "itemBadge": true, "showBadge": true, "popOverContainer": true, "keyField": true, "childrenColumnName": true, "rowClassNameExpr": true, "lineHeight": true, "bordered": true, "showHeader": true, "footer": true, "quickSaveApi": true, "quickSaveItemApi": true, "messages": true, "reload": true, "actions": true, "maxKeepItemSelectionLength": true, "keepItemSelectionOnPageChange": true, "selectable": true, "multiple": true, "primaryField": true, "tableLayout": true, "autoFillHeight": true, "canAccessSuperData": true, "lazyRenderAfter": true, "mode": { "type": "string", "const": "table2" }, "loadingConfig": true, "api": true, "silentPolling": true, "interval": true, "stopAutoRefreshWhen": true, "loadType": true, "perPage": true, "loadDataOnce": true, "showSelection": true, "saveOrderApi": true, "syncLocation": true, "pageField": true, "perPageField": true, "name": true, "hideQuickSaveBtn": true, "autoJumpToTopOnPagerChange": true, "headerToolbar": true, "headerToolbarClassName": true, "footerToolbar": true, "footerToolbarClassName": true, "syncResponse2Query": true, "parsePrimitiveQuery": true, "pullRefresh": true }, "required": [ "columns", "source", "type" ] }, "DateSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "date", "datetime", "time", "static-date", "static-datetime", "static-time" ], "description": "指定为日期展示类型" }, "format": { "type": "string", "description": "展示的时间格式,参考 moment 中的格式说明。" }, "displayFormat": { "type": "string", "description": "展示的时间格式,参考 moment 中的格式说明。(新:同format)" }, "placeholder": { "type": "string", "description": "占位符" }, "valueFormat": { "type": "string", "description": "值的时间格式,参考 moment 中的格式说明。" }, "fromNow": { "type": "boolean", "description": "显示成相对时间,比如1分钟前" }, "updateFrequency": { "type": "number", "description": "更新频率, 默认为1分钟" }, "displayTimeZone": { "type": "string", "description": "时区" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "date", "datetime", "time", "static-date", "static-datetime", "static-time" ] }, "testid": true, "format": true, "displayFormat": true, "placeholder": true, "valueFormat": true, "fromNow": true, "updateFrequency": true, "displayTimeZone": true }, "required": [ "type" ], "description": "Date 展示渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/date" }, "DialogSchema": { "allOf": [ { "$ref": "#/definitions/DialogSchemaBase", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "dialog" }, "testid": true, "inputParams": true, "actions": true, "body": true, "bodyClassName": true, "closeOnEsc": true, "closeOnOutside": true, "name": true, "size": true, "height": true, "width": true, "title": true, "header": true, "headerClassName": true, "footer": true, "confirm": true, "showCloseButton": true, "showErrorMsg": true, "showLoading": true, "overlay": true, "dialogType": { "type": "string", "const": "confirm" }, "draggable": true, "allowFullscreen": true, "data": true }, "required": [ "type" ] }, "DividerSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "divider" }, "lineStyle": { "type": "string", "enum": [ "dashed", "solid" ] }, "direction": { "type": "string", "enum": [ "horizontal", "vertical" ] }, "color": { "type": "string" }, "rotate": { "type": "number" }, "title": { "$ref": "#/definitions/SchemaCollection" }, "titleClassName": { "type": "string" }, "titlePosition": { "type": "string", "enum": [ "left", "center", "right" ] } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema" } ], "description": "Divider 分割线渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/divider" }, "DrawerSchema": { "allOf": [ { "$ref": "#/definitions/DrawerSchemaBase", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "drawer" }, "testid": true, "inputParams": true, "actions": true, "body": true, "bodyClassName": true, "headerClassName": true, "footerClassName": true, "closeOnEsc": true, "name": true, "size": true, "title": true, "position": true, "showCloseButton": true, "width": true, "height": true, "header": true, "footer": true, "confirm": true, "resizable": true, "overlay": true, "closeOnOutside": true, "showErrorMsg": true, "data": true }, "required": [ "type" ] }, "DropdownButtonSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "dropdown-button", "description": "指定为 DropDown Button 类型" }, "block": { "type": "boolean", "description": "是否独占一行 `display: block`" }, "btnClassName": { "$ref": "#/definitions/SchemaClassName", "description": "给 Button 配置 className。" }, "buttons": { "type": "array", "items": { "$ref": "#/definitions/DropdownButton" }, "description": "按钮集合,支持分组" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "label": { "type": "string", "description": "按钮文字" }, "level": { "type": "string", "enum": [ "info", "success", "danger", "warning", "primary", "link" ], "description": "按钮级别,样式" }, "closeOnOutside": { "type": "boolean", "description": "点击外部是否关闭" }, "closeOnClick": { "type": "boolean", "description": "点击内容是否关闭" }, "size": { "type": "string", "enum": [ "xs", "sm", "md", "lg" ], "description": "按钮大小" }, "align": { "type": "string", "enum": [ "left", "right" ], "description": "对齐方式" }, "iconOnly": { "type": "boolean", "description": "是否只显示图标。" }, "rightIcon": { "$ref": "#/definitions/SchemaIcon", "description": "右侧图标" }, "trigger": { "type": "string", "enum": [ "click", "hover" ], "description": "触发条件,默认是 click" }, "hideCaret": { "type": "boolean", "description": "是否显示下拉按钮" }, "popOverContainerSelector": { "type": "string", "description": "弹出的下拉按钮放在哪个节点下" }, "menuClassName": { "type": "string", "description": "菜单 CSS 样式" }, "overlayPlacement": { "type": "string" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "dropdown-button" }, "testid": true, "block": true, "btnClassName": true, "buttons": true, "body": true, "label": true, "level": true, "closeOnOutside": true, "closeOnClick": true, "size": true, "align": true, "iconOnly": true, "rightIcon": true, "trigger": true, "hideCaret": true, "popOverContainerSelector": true, "menuClassName": true, "overlayPlacement": true }, "required": [ "type" ], "description": "下拉按钮渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/dropdown-button" }, "DropdownButton": { "anyOf": [ { "allOf": [ { "$ref": "#/definitions/ActionSchemaLoose" }, { "type": "object", "properties": { "children": { "type": "array", "items": { "$ref": "#/definitions/DropdownButton" } } }, "additionalProperties": true } ] }, { "$ref": "#/definitions/DividerSchema" }, { "type": "string", "const": "divider" } ] }, "EachSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "each", "description": "指定为each展示类型" }, "name": { "type": "string", "description": "关联字段名" }, "source": { "type": "string", "description": "关联字段名 支持数据映射" }, "itemKeyName": { "type": "string", "description": "用来控制通过什么字段读取成员数据,考虑到可能多层嵌套 如果名字一样会读取不到上层变量,所以这里可以指定一下", "default": "item" }, "indexKeyName": { "type": "string", "description": "用来控制通过什么字段读取序号,考虑到可能多层嵌套 如果名字一样会读取不到上层变量,所以这里可以指定一下", "default": "index" }, "items": { "$ref": "#/definitions/SchemaCollection" }, "placeholder": { "type": "string" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "each" }, "testid": true, "name": true, "source": true, "itemKeyName": true, "indexKeyName": true, "items": true, "placeholder": true }, "required": [ "type" ], "description": "Each 循环功能渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/each" }, "GridSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "grid", "description": "指定为 Grid 格子布局渲染器。" }, "columns": { "type": "array", "items": { "$ref": "#/definitions/GridColumn" }, "description": "列集合" }, "gap": { "type": "string", "enum": [ "xs", "sm", "base", "none", "md", "lg" ], "description": "水平间距" }, "valign": { "type": "string", "enum": [ "top", "middle", "bottom", "between" ], "description": "垂直对齐方式" }, "align": { "type": "string", "enum": [ "left", "right", "between", "center" ], "description": "水平对齐方式" } }, "required": [ "type", "columns" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "grid" }, "testid": true, "columns": true, "gap": true, "valign": true, "align": true }, "required": [ "type", "columns" ], "description": "Grid 格子布局渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/grid" }, "GridColumn": { "$ref": "#/definitions/GridColumnObject" }, "GridColumnObject": { "type": "object", "properties": { "id": { "type": "string", "description": "组件唯一 id" }, "xs": { "anyOf": [ { "type": "number" }, { "type": "string", "const": "auto" } ], "description": "极小屏(<768px)时宽度占比" }, "sm": { "anyOf": [ { "type": "number" }, { "type": "string", "const": "auto" } ], "description": "小屏时(>=768px)宽度占比" }, "md": { "anyOf": [ { "type": "number" }, { "type": "string", "const": "auto" } ], "description": "中屏时(>=992px)宽度占比" }, "lg": { "anyOf": [ { "type": "number" }, { "type": "string", "const": "auto" } ], "description": "大屏时(>=1200px)宽度占比" }, "valign": { "type": "string", "enum": [ "top", "middle", "bottom", "between" ], "description": "垂直对齐方式" }, "mode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "horizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "body": { "$ref": "#/definitions/SchemaCollection" }, "columnClassName": { "$ref": "#/definitions/SchemaClassName", "description": "列类名" }, "style": { "description": "样式" }, "wrapperCustomStyle": {}, "themeCss": {} }, "additionalProperties": false }, "Grid2DSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "grid-2d", "description": "指定为 grid-2d 展示类型" }, "cols": { "type": "number", "description": "列数量,默认是 12" }, "width": { "anyOf": [ { "type": "number" }, { "type": "string" }, { "type": "string", "const": "auto" } ], "description": "grid 2d 容器宽度,默认是 auto" }, "gap": { "type": [ "number", "string" ], "description": "格子间距,默认 0,包含行和列" }, "gapRow": { "type": [ "number", "string" ], "description": "格子行级别的间距,如果不设置就和 gap 一样" }, "rowHeight": { "type": [ "number", "string" ], "description": "单位行高度,默认 50 px" }, "grids": { "type": "array", "items": { "$ref": "#/definitions/Grid" }, "description": "每个格子的配置" } }, "required": [ "type", "grids" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "grid-2d" }, "testid": true, "cols": true, "width": true, "gap": true, "gapRow": true, "rowHeight": true, "grids": true }, "required": [ "type", "grids" ], "description": "二维布局渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/grid-2d" }, "Grid": { "allOf": [ { "$ref": "#/definitions/GridObject", "additionalProperties": true }, { "$ref": "#/definitions/SchemaObjectLoose" } ] }, "GridObject": { "type": "object", "properties": { "x": { "type": "number", "description": "起始横坐标位置,以 1 为起点" }, "y": { "type": "number", "description": "起始纵坐标位置,以 1 为起点" }, "w": { "type": "number", "description": "宽度,跨几列" }, "h": { "type": "number", "description": "高度,跨几行" }, "width": { "type": [ "number", "string" ], "description": "宽度,会影响起始位置对应那一列的宽度" }, "height": { "type": [ "number", "string" ], "description": "高度,会影响起始位置那一行的高度,设置为 auto 就会自适应" }, "align": { "type": "string", "enum": [ "left", "right", "center", "auto" ], "description": "水平展示方式,用于内容宽度比 grid 小的情况,默认是 auto 自动撑满" }, "valign": { "type": "string", "enum": [ "top", "bottom", "middle", "auto" ], "description": "垂直展示方式,用于内容高度比 grid 小的情况,默认是 auto 自动撑满" }, "gridClassName": { "type": "string", "description": "每个格子最外层容器的 className" } }, "required": [ "x", "y", "w", "h" ], "additionalProperties": false }, "HBoxSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "hbox", "description": "指定为each展示类型" }, "columns": { "type": "array", "items": { "$ref": "#/definitions/HBoxColumn" } }, "subFormMode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "subFormHorizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "gap": { "type": "string", "enum": [ "xs", "sm", "base", "none", "md", "lg" ], "description": "水平间距" }, "valign": { "type": "string", "enum": [ "top", "middle", "bottom", "between" ], "description": "垂直对齐方式" }, "align": { "type": "string", "enum": [ "left", "right", "between", "center" ], "description": "水平对齐方式" } }, "required": [ "type", "columns" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "hbox" }, "testid": true, "columns": true, "subFormMode": true, "subFormHorizontal": true, "gap": true, "valign": true, "align": true }, "required": [ "type", "columns" ], "description": "Hbox 水平布局渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/hbox" }, "HBoxColumn": { "$ref": "#/definitions/HBoxColumnObject" }, "HBoxColumnObject": { "type": "object", "properties": { "columnClassName": { "type": "string", "description": "列上 CSS 类名" }, "valign": { "type": "string", "enum": [ "top", "middle", "bottom", "between" ], "description": "垂直对齐方式" }, "width": { "type": [ "number", "string" ], "description": "宽度" }, "height": { "type": [ "number", "string" ], "description": "高度" }, "style": { "type": "object", "description": "其他样式" }, "mode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "horizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区" }, "visible": { "type": "boolean", "description": "是否显示" }, "visibleOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否显示表达式" } }, "additionalProperties": false }, "IconSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "icon" }, "icon": { "anyOf": [ { "$ref": "#/definitions/SchemaTpl" }, { "$ref": "#/definitions/IconCheckedSchema" } ], "description": "按钮类型" }, "vendor": { "type": "string", "enum": [ "iconfont", "fa", "" ] }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" } }, "required": [ "type", "icon" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "icon" }, "testid": true, "icon": true, "vendor": true, "badge": true }, "required": [ "type", "icon" ], "description": "Icon 图标渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/icon" }, "IconCheckedSchema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "svg": { "type": "string" } }, "required": [ "id" ], "additionalProperties": false }, "IFrameSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "iframe" }, "src": { "$ref": "#/definitions/SchemaUrlPath", "description": "页面地址" }, "width": { "type": [ "number", "string" ] }, "height": { "type": [ "number", "string" ] }, "allow": { "type": "string" }, "name": { "type": "string" }, "referrerpolicy": { "type": "string", "enum": [ "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url" ] }, "sandbox": { "type": "string" } }, "required": [ "type", "src" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "iframe" }, "testid": true, "src": true, "width": true, "height": true, "allow": true, "name": true, "referrerpolicy": true, "sandbox": true }, "required": [ "type", "src" ], "description": "IFrame 渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/iframe" }, "ImageSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "image", "static-image" ], "description": "指定为图片展示类型" }, "defaultImage": { "$ref": "#/definitions/SchemaUrlPath", "description": "默认图片地址" }, "title": { "$ref": "#/definitions/SchemaTpl", "description": "图片标题" }, "name": { "type": "string", "description": "关联字段名,也可以直接配置 src" }, "imageCaption": { "$ref": "#/definitions/SchemaTpl", "description": "图片描述信息" }, "src": { "$ref": "#/definitions/SchemaUrlPath", "description": "图片地址,如果配置了 name,这个属性不用配置。" }, "originalSrc": { "$ref": "#/definitions/SchemaUrlPath", "description": "大图地址,不设置用 src" }, "enlargeAble": { "type": "boolean", "description": "是否启动放大功能。" }, "enlargeWithGallary": { "type": "boolean", "description": "放大时是否显示图片集" }, "alt": { "type": "string", "description": "图片无法显示时的替换文本" }, "height": { "type": "number", "description": "高度" }, "width": { "type": "number", "description": "宽度" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "外层 css 类名" }, "innerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "组件内层 css 类名" }, "imageClassName": { "$ref": "#/definitions/SchemaClassName", "description": "图片 css 类名" }, "thumbClassName": { "$ref": "#/definitions/SchemaClassName", "description": "图片缩略图外层 css 类名" }, "imageGallaryClassName": { "$ref": "#/definitions/SchemaClassName", "description": "放大详情图 CSS 类名" }, "caption": { "$ref": "#/definitions/SchemaTpl", "description": "图片说明文字" }, "imageMode": { "type": "string", "enum": [ "thumb", "original" ], "description": "图片展示模式,默认为缩略图模式、可以配置成原图模式" }, "thumbMode": { "type": "string", "enum": [ "w-full", "h-full", "contain", "cover" ], "description": "预览图模式" }, "thumbRatio": { "type": "string", "enum": [ "1:1", "4:3", "16:9" ], "description": "预览图比率" }, "href": { "$ref": "#/definitions/SchemaTpl", "description": "链接地址" }, "blank": { "type": "boolean", "description": "是否新窗口打开" }, "htmlTarget": { "type": "string", "description": "链接的 target" }, "showToolbar": { "type": "boolean", "description": "是否展示图片工具栏" }, "toolbarActions": { "type": "array", "items": { "$ref": "#/definitions/ImageToolbarAction" }, "description": "工具栏配置" }, "hoverMode": { "type": "string", "enum": [ "hover-slide", "pull-top", "scale-center", "scale-top", "text-style-1", "text-style-2", "text-style-3", "text-style-4", "text-style-5", "text-style-6", "text-style-7" ], "description": "鼠标悬浮时的展示状态(对应AIpage的文字6,9,10不存在)" }, "sortType": { "type": "string", "description": "图集组件传入的排序方式" }, "fontStyle": { "type": "object", "properties": { "fontSize": { "type": "string" }, "fontWeight": { "type": "string" }, "fontFamily": { "type": "string" }, "color": { "type": "string" } }, "additionalProperties": false, "description": "描述文字样式" }, "maskColor": { "type": "string", "description": "蒙层颜色" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "image", "static-image" ] }, "testid": true, "defaultImage": true, "title": true, "name": true, "imageCaption": true, "src": true, "originalSrc": true, "enlargeAble": true, "enlargeWithGallary": true, "alt": true, "height": true, "width": true, "innerClassName": true, "imageClassName": true, "thumbClassName": true, "imageGallaryClassName": true, "caption": true, "imageMode": true, "thumbMode": true, "thumbRatio": true, "href": true, "blank": true, "htmlTarget": true, "showToolbar": true, "toolbarActions": true, "hoverMode": true, "sortType": true, "fontStyle": true, "maskColor": true }, "required": [ "type" ], "description": "图片展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/image" }, "ImageToolbarAction": { "type": "object", "properties": { "key": { "type": "string", "enum": [ "ROTATE_RIGHT", "ROTATE_LEFT", "ZOOM_IN", "ZOOM_OUT", "SCALE_ORIGIN" ] }, "label": { "type": "string" }, "icon": { "type": "string" }, "iconClassName": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "key" ], "additionalProperties": false }, "ImagesSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "images", "static-images" ], "description": "指定为图片集渲染器" }, "defaultImage": { "$ref": "#/definitions/SchemaUrlPath", "description": "默认图片地址" }, "placeholder": { "type": "string", "description": "列表为空时显示" }, "delimiter": { "type": "string", "description": "配置值的连接符", "default": "," }, "thumbMode": { "type": "string", "enum": [ "w-full", "h-full", "contain", "cover" ], "description": "预览图模式" }, "thumbRatio": { "type": "string", "enum": [ "1:1", "4:3", "16:9" ], "description": "预览图比率" }, "name": { "type": "string", "description": "关联字段名,也可以直接配置 src" }, "value": {}, "source": { "type": "string" }, "options": { "type": "array", "items": {} }, "src": { "type": "string", "description": "图片地址,默认读取数据中的 image 属性,如果不是请配置 ,如 ${imageUrl}" }, "originalSrc": { "type": "string", "description": "大图地址,不设置用 src 属性,如果不是请配置,如:${imageOriginUrl}" }, "enlargeAble": { "type": "boolean", "description": "是否启动放大功能。" }, "enlargetWithImages": { "type": "boolean", "description": "放大时是否显示图片集" }, "showDimensions": { "type": "boolean", "description": "是否显示尺寸。" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "外层 CSS 类名" }, "listClassName": { "$ref": "#/definitions/SchemaClassName", "description": "列表 CSS 类名" }, "imageGallaryClassName": { "$ref": "#/definitions/SchemaClassName", "description": "放大详情图 CSS 类名" }, "showToolbar": { "type": "boolean", "description": "是否展示图片工具栏" }, "toolbarActions": { "type": "array", "items": { "$ref": "#/definitions/ImageToolbarAction" }, "description": "工具栏配置" }, "displayMode": { "type": "string", "enum": [ "thumb", "full" ], "description": "展示模式,支持缩略图模式(thumb)和大图模式(full)" }, "currentIndex": { "type": "number", "description": "当前展示图片索引" }, "fullThumbMode": { "type": "string", "enum": [ "cover", "contain" ], "description": "大图模式下的缩放模式" }, "sortType": { "type": "string", "enum": [ "sm-ss-sss-m", "sss-ss-ms-m", "sms-ss-sms-m", "sm-ss-sss-ss", "ms-ss-sss-ss", "sss-ss-sm-ss", "mss-ss-ssm-ss", "sss-ss-mm-ss", "even-${number}-${number}" ], "description": "排列方式 类命名方式按照上右下左四个边命名,l=2m,m=2s,最小单位为s 每条边的顺序都是从上到下,从左到右。" }, "width": { "type": "string", "description": "宽度(有sortType时生效)" }, "height": { "type": "string", "description": "高度(有sortType时生效)" }, "hoverMode": { "type": "string", "enum": [ "hover-slide", "pull-top", "scale-center", "scale-top", "text-style-1", "text-style-2", "text-style-3", "text-style-4", "text-style-5", "text-style-6", "text-style-7" ], "description": "鼠标悬浮时的展示状态(对应AIpage的文字6,9,10不存在)" }, "fontStyle": { "type": "object", "properties": { "fontSize": { "type": "string" }, "fontWeight": { "type": "string" }, "fontFamily": { "type": "string" }, "color": { "type": "string" } }, "additionalProperties": false, "description": "描述文字样式" }, "maskColor": { "type": "string", "description": "蒙层颜色" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "images", "static-images" ] }, "testid": true, "defaultImage": true, "placeholder": true, "delimiter": true, "thumbMode": true, "thumbRatio": true, "name": true, "value": true, "source": true, "options": true, "src": true, "originalSrc": true, "enlargeAble": true, "enlargetWithImages": true, "showDimensions": true, "listClassName": true, "imageGallaryClassName": true, "showToolbar": true, "toolbarActions": true, "displayMode": true, "currentIndex": true, "fullThumbMode": true, "sortType": true, "width": true, "height": true, "hoverMode": true, "fontStyle": true, "maskColor": true }, "required": [ "type" ], "description": "图片集展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/images" }, "JsonSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "json", "static-json" ], "description": "指定为Json展示类型" }, "value": { "anyOf": [ { "type": "object" }, { "type": "array", "items": {} } ], "description": "要展示的 JSON 数据" }, "levelExpand": { "type": "number", "description": "默认展开的级别" }, "source": { "type": "string", "description": "支持从数据链取值" }, "mutable": { "type": "boolean", "description": "是否可修改" }, "displayDataTypes": { "type": "boolean", "description": "是否显示数据类型" }, "enableClipboard": { "type": "boolean", "description": "是否可复制" }, "iconStyle": { "type": "string", "enum": [ "square", "circle", "triangle" ], "description": "图标风格" }, "quotesOnKeys": { "type": "boolean", "description": "是否显示键的引号" }, "sortKeys": { "type": "boolean", "description": "是否为键排序" }, "ellipsisThreshold": { "anyOf": [ { "type": "number" }, { "type": "boolean", "const": false } ], "description": "设置字符串的最大展示长度,超出长度阈值的字符串将被截断,点击value可切换字符串展示方式,默认为false" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "json", "static-json" ] }, "testid": true, "value": true, "levelExpand": true, "source": true, "mutable": true, "displayDataTypes": true, "enableClipboard": true, "iconStyle": true, "quotesOnKeys": true, "sortKeys": true, "ellipsisThreshold": true }, "required": [ "type" ], "description": "JSON 数据展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/json" }, "LinkSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "link", "description": "指定为 link 链接展示控件" }, "blank": { "type": "boolean", "description": "是否新窗口打开。" }, "href": { "type": "string", "description": "链接地址" }, "body": { "$ref": "#/definitions/SchemaTpl", "description": "链接内容,如果不配置将显示链接地址。" }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "htmlTarget": { "type": "string", "description": "a标签原生target属性" }, "icon": { "type": "string", "description": "图标" }, "rightIcon": { "type": "string", "description": "右侧图标" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "link" }, "testid": true, "blank": true, "href": true, "body": true, "badge": true, "htmlTarget": true, "icon": true, "rightIcon": true }, "required": [ "type" ], "description": "Link 链接展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/link" }, "ListSchema": { "allOf": [ { "$ref": "#/definitions/BaseListSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "list", "static-list" ] }, "testid": true, "title": true, "footer": true, "footerClassName": true, "header": true, "headerClassName": true, "listItem": true, "source": true, "showFooter": true, "showHeader": true, "placeholder": true, "hideCheckToggler": true, "affixHeader": true, "affixFooter": true, "itemCheckableOn": true, "itemDraggableOn": true, "checkOnItemClick": true, "valueField": true, "size": true, "itemAction": true, "showIndexBar": true, "indexField": true, "indexBarOffset": true }, "required": [ "type" ] }, "MappingSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "map", "mapping" ], "description": "指定为映射展示控件" }, "name": { "type": "string", "description": "关联字段名。" }, "map": { "type": "object", "additionalProperties": { "$ref": "#/definitions/SchemaTpl" }, "description": "配置映射规则,值可以使用模板语法。当 key 为 * 时表示 else,也就是说值没有映射到任何规则时用 * 对应的值展示。" }, "valueField": { "type": "string", "description": "map或source为对象数组时,作为value值的字段名" }, "labelField": { "type": "string", "description": "map或source为对象数组时,作为label值的字段名" }, "itemSchema": { "$ref": "#/definitions/SchemaCollection", "description": "自定义渲染映射值,支持html或schema" }, "source": { "anyOf": [ { "$ref": "#/definitions/SchemaApi" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "如果想远程拉取字典,请配置 source 为接口。" }, "placeholder": { "type": "string", "description": "占位符" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "map", "mapping" ] }, "testid": true, "name": true, "map": true, "valueField": true, "labelField": true, "itemSchema": true, "source": true, "placeholder": true }, "required": [ "type" ], "description": "Mapping 映射展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/mapping" }, "NavSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "nav", "description": "指定为 Nav 导航渲染器" }, "links": { "type": "array", "items": { "$ref": "#/definitions/NavItemSchema" }, "description": "链接地址集合" }, "indentSize": { "type": "number", "default": 16 }, "source": { "$ref": "#/definitions/SchemaApi", "description": "可以通过 API 拉取。" }, "deferApi": { "$ref": "#/definitions/SchemaApi", "description": "懒加载 api,如果不配置复用 source 接口。" }, "stacked": { "type": "boolean", "enum": [ true, false ], "description": "true 为垂直排列,false 为水平排列类似如 tabs。" }, "itemActions": { "$ref": "#/definitions/SchemaCollection", "description": "更多操作菜单列表" }, "draggable": { "type": "boolean", "description": "可拖拽" }, "saveOrderApi": { "$ref": "#/definitions/SchemaApi", "description": "保存排序的 api" }, "itemBadge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "dragOnSameLevel": { "type": "boolean", "description": "仅允许同层级拖拽" }, "overflow": { "$ref": "#/definitions/NavOverflow", "description": "横向导航时自动收纳配置" }, "level": { "type": "number", "description": "最多展示多少层级" }, "defaultOpenLevel": { "type": "number", "description": "默认展开层级 小于等于该层数的节点默认全部打开" }, "showKey": { "type": "string", "description": "控制仅展示指定key菜单下的子菜单项" }, "collapsed": { "type": "boolean", "description": "控制菜单缩起" }, "mode": { "type": "string", "enum": [ "panel", "float", "inline" ], "description": "垂直模式 非折叠状态下 控制菜单打开方式" }, "expandIcon": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "自定义展开图标" }, "expandPosition": { "type": "string", "description": "自定义展开图标位置 默认在前面 before after" }, "themeColor": { "type": "string", "enum": [ "light", "dark" ], "description": "主题配色 默认light" }, "accordion": { "type": "boolean", "description": "手风琴展开 仅垂直inline模式支持" }, "popupClassName": { "type": "string", "description": "子菜单项展开浮层样式" }, "searchable": { "type": "boolean", "description": "是否开启搜索" }, "searchConfig": { "type": "object", "properties": { "className": { "type": "string", "description": "搜索框外层CSS样式类" }, "matchFunc": { "anyOf": [ { "type": "string" }, {} ], "description": "搜索匹配函数" }, "placeholder": { "type": "string", "description": "占位符" }, "mini": { "type": "boolean", "description": "是否为 Mini 样式。" }, "enhance": { "type": "boolean", "description": "是否为加强样式" }, "clearable": { "type": "boolean", "description": "是否可清除" }, "searchImediately": { "type": "boolean", "description": "是否立马搜索。" }, "valueField": { "type": "string", "description": "指定唯一标识字段" } }, "additionalProperties": false, "description": "搜索框相关配置" } }, "required": [ "type", "indentSize" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "nav" }, "testid": true, "links": true, "indentSize": true, "source": true, "deferApi": true, "stacked": true, "itemActions": true, "draggable": true, "saveOrderApi": true, "itemBadge": true, "badge": true, "dragOnSameLevel": true, "overflow": true, "level": true, "defaultOpenLevel": true, "showKey": true, "collapsed": true, "mode": true, "expandIcon": true, "expandPosition": true, "themeColor": true, "accordion": true, "popupClassName": true, "searchable": true, "searchConfig": true }, "required": [ "type", "indentSize" ], "description": "Nav 导航渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/nav" }, "NavItemSchema": { "allOf": [ { "type": "object", "properties": { "label": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaCollection" } ], "description": "文字说明" }, "icon": { "anyOf": [ { "$ref": "#/definitions/SchemaIcon" }, { "type": "array", "items": { "$ref": "#/definitions/IconItemSchema" } } ], "description": "图标类名,参考 fontawesome 4。" }, "to": { "$ref": "#/definitions/SchemaUrlPath" }, "target": { "type": "string" }, "unfolded": { "type": "boolean" }, "active": { "type": "boolean" }, "defer": { "type": "boolean" }, "deferApi": { "$ref": "#/definitions/SchemaApi" }, "children": { "type": "array", "items": { "$ref": "#/definitions/NavItemSchema" } }, "key": { "type": "string" }, "disabled": { "type": "boolean", "description": "是否禁用" }, "disabledTip": { "type": "string" }, "className": { "type": "string", "description": "容器 css 类名" }, "mode": { "type": "string" } } }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "label": true, "icon": true, "to": true, "target": true, "unfolded": true, "active": true, "defer": true, "deferApi": true, "children": true, "key": true, "disabledTip": true, "mode": true } }, "IconItemSchema": { "type": "object", "properties": { "icon": { "$ref": "#/definitions/SchemaIcon" }, "position": { "type": "string" } }, "required": [ "position" ], "additionalProperties": false }, "NavOverflow": { "type": "object", "properties": { "enable": { "type": "boolean", "description": "是否开启响应式收纳" }, "overflowLabel": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "菜单触发按钮的文字" }, "overflowIndicator": { "$ref": "#/definitions/SchemaIcon", "description": "菜单触发按钮的图标", "default": "fa fa-ellipsis-h" }, "overflowClassName": { "$ref": "#/definitions/SchemaClassName", "description": "菜单触发按钮CSS类名" }, "overflowPopoverClassName": { "$ref": "#/definitions/SchemaClassName", "description": "Popover浮层CSS类名" }, "overflowListClassName": { "$ref": "#/definitions/SchemaClassName", "description": "菜单外层CSS类名" }, "maxVisibleCount": { "type": "number", "description": "导航横向布局时,开启开启响应式收纳后最大可显示数量,超出此数量的导航将被收纳到下拉菜单中" }, "wrapperComponent": { "type": "string", "description": "包裹导航的外层标签名,可以使用其他标签渲染", "default": "ul" }, "itemWidth": { "type": "number", "description": "导航项目宽度", "default": 160 }, "overflowSuffix": { "$ref": "#/definitions/SchemaCollection", "description": "导航列表后缀节点" }, "style": { "description": "自定义样式" }, "mode": { "type": "string", "enum": [ "popup", "swipe" ], "description": "导航超出后响应式收纳方案。", "default": "\"popup\"\npopup 导航被收纳到下拉菜单中\nswipe 导航展示在一个可左右滑动的菜单中,通过左右箭头滚动查看。只在横向布局有效" } }, "required": [ "enable" ], "additionalProperties": false }, "OperationSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "operation", "description": "指定为操作栏" }, "placeholder": { "type": "string", "description": "占位符" }, "buttons": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" } } }, "required": [ "type", "buttons" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "operation" }, "testid": true, "placeholder": true, "buttons": true }, "required": [ "type", "buttons" ], "description": "操作栏渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/operation" }, "PaginationSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "pagination" }, "layout": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "通过控制layout属性的顺序,调整分页结构 total,perPage,pager,go", "default": "pager" }, "maxButtons": { "type": "number", "description": "最多显示多少个分页按钮。", "default": 5 }, "mode": { "$ref": "#/definitions/MODE_TYPE", "description": "模式,默认normal,如果只想简单显示可以配置成 `simple`。", "default": "normal" }, "activePage": { "type": "number", "description": "当前页数" }, "total": { "type": "number", "description": "总条数" }, "perPage": { "type": "number", "description": "每页显示条数", "default": 10 }, "showPerPage": { "type": "boolean", "description": "是否展示分页切换,也同时受layout控制", "default": false }, "perPageAvailable": { "type": "array", "items": { "type": "number" }, "description": "指定每页可以显示多少条", "default": [ 10, 20, 50, 100 ] }, "showPageInput": { "type": "boolean", "description": "是否显示快速跳转输入框", "default": false }, "disabled": { "type": "boolean", "description": "是否禁用", "default": false }, "hasNext": { "type": "boolean" }, "popOverContainerSelector": { "type": "string", "description": "弹层挂载节点", "default": false } }, "required": [ "type", "activePage" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "pagination" }, "testid": true, "layout": true, "maxButtons": true, "mode": true, "activePage": true, "total": true, "perPage": true, "showPerPage": true, "perPageAvailable": true, "showPageInput": true, "hasNext": true, "popOverContainerSelector": true }, "required": [ "type", "activePage" ] }, "MODE_TYPE": { "type": "string", "enum": [ "simple", "normal" ] }, "PaginationWrapperSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "pagination-wrapper", "description": "指定为分页容器功能性渲染器" }, "showPageInput": { "type": "boolean", "description": "是否显示快速跳转输入框" }, "maxButtons": { "type": "number", "description": "最多显示多少个分页按钮。", "default": 5 }, "inputName": { "type": "string", "description": "输入字段名", "default": "items" }, "outputName": { "type": "string", "description": "输出字段名", "default": "items" }, "perPage": { "type": "number", "description": "每页显示多条数据。", "default": 10 }, "position": { "type": "string", "enum": [ "top", "bottom", "none" ], "description": "分页显示位置,如果配置为 none 则需要自己在内容区域配置 pagination 组件,否则不显示。" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "pagination-wrapper" }, "testid": true, "showPageInput": true, "maxButtons": true, "inputName": true, "outputName": true, "perPage": true, "position": true, "body": true }, "required": [ "type" ], "description": "分页容器功能性渲染器。详情请见:https://aisuda.bce.baidu.com/amis/zh-CN/components/pagination-wrapper" }, "PanelSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "panel", "description": "指定为Panel渲染器。" }, "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "按钮集合" }, "actionsClassName": { "$ref": "#/definitions/SchemaClassName", "description": "按钮集合外层类名" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "bodyClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置 Body 容器 className" }, "footer": { "$ref": "#/definitions/SchemaCollection", "description": "底部内容区域" }, "footerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置 footer 容器 className" }, "footerWrapClassName": { "$ref": "#/definitions/SchemaClassName", "description": "footer 和 actions 外层 div 类名。" }, "header": { "$ref": "#/definitions/SchemaCollection", "description": "头部内容, 和 title 二选一。" }, "headerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置 header 容器 className" }, "title": { "$ref": "#/definitions/SchemaTpl", "description": "Panel 标题" }, "affixFooter": { "anyOf": [ { "type": "boolean" }, { "type": "string", "const": "always" } ], "description": "固定底部, 想要把按钮固定在底部的时候配置。" }, "collapsible": { "type": "boolean", "description": "\\ 可折叠。先简单实现一下" }, "subFormMode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "subFormHorizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "headerControlClassName": { "type": "string", "description": "外观配置的classname" }, "bodyControlClassName": { "type": "string" }, "actionsControlClassName": { "type": "string" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "panel" }, "testid": true, "actions": true, "actionsClassName": true, "body": true, "bodyClassName": true, "footer": true, "footerClassName": true, "footerWrapClassName": true, "header": true, "headerClassName": true, "title": true, "affixFooter": true, "collapsible": true, "subFormMode": true, "subFormHorizontal": true, "headerControlClassName": true, "bodyControlClassName": true, "actionsControlClassName": true }, "required": [ "type" ], "description": "Panel渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/panel" }, "PlainSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "plain", "text" ], "description": "指定为模板渲染器。\n\n文档:https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/template" }, "tpl": { "$ref": "#/definitions/SchemaTpl" }, "text": { "$ref": "#/definitions/SchemaTpl" }, "inline": { "type": "boolean", "description": "是否内联显示?" }, "placeholder": { "type": "string", "description": "占位符", "deprecated": "-" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "plain", "text" ] }, "testid": true, "tpl": true, "text": true, "inline": true, "placeholder": true }, "required": [ "type" ], "description": "Plain 纯文本渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/plain" }, "ProgressSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "progress" }, "name": { "type": "string", "description": "关联字段名" }, "value": { "type": "number", "description": "进度值" }, "mode": { "type": "string", "enum": [ "line", "circle", "dashboard" ], "description": "进度条类型" }, "progressClassName": { "$ref": "#/definitions/SchemaClassName", "description": "进度条 CSS 类名" }, "map": { "$ref": "#/definitions/ColorMapType", "description": "配置不同的值段,用不同的样式提示用户" }, "showLabel": { "type": "boolean", "description": "是否显示值" }, "placeholder": { "type": "string", "description": "占位符" }, "stripe": { "type": "boolean", "description": "是否显示背景间隔" }, "animate": { "type": "boolean", "description": "是否显示动画(只有在开启的时候才能看出来)" }, "strokeWidth": { "type": "number", "description": "进度条线的宽度" }, "gapDegree": { "type": "number", "description": "仪表盘进度条缺口角度,可取值 0 ~ 295" }, "gapPosition": { "type": "string", "enum": [ "top", "bottom", "left", "right" ], "description": "仪表盘进度条缺口位置" }, "valueTpl": { "type": "string", "description": "内容的模板函数" }, "threshold": { "anyOf": [ { "type": "object", "properties": { "value": { "$ref": "#/definitions/SchemaTpl" }, "color": { "type": "string" } }, "required": [ "value" ], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "value": { "$ref": "#/definitions/SchemaTpl" }, "color": { "type": "string" } }, "required": [ "value" ], "additionalProperties": false } } ], "description": "阈值" }, "showThresholdText": { "type": "boolean", "description": "是否显示阈值数值" } }, "required": [ "type", "value", "mode" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "progress" }, "testid": true, "name": true, "value": true, "mode": true, "progressClassName": true, "map": true, "showLabel": true, "placeholder": true, "stripe": true, "animate": true, "strokeWidth": true, "gapDegree": true, "gapPosition": true, "valueTpl": true, "threshold": true, "showThresholdText": true }, "required": [ "type", "value", "mode" ], "description": "进度展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/progress" }, "ColorMapType": { "anyOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "array", "items": { "type": "object", "properties": { "value": { "type": "number" }, "color": { "type": "string" } }, "required": [ "value", "color" ], "additionalProperties": false } }, { "type": "string" } ] }, "QRCodeSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "qrcode", "qr-code" ] }, "name": { "type": "string", "description": "关联字段名。" }, "qrcodeClassName": { "$ref": "#/definitions/SchemaClassName", "description": "css 类名" }, "codeSize": { "type": "number", "description": "二维码的宽高大小,默认 128", "default": 128 }, "backgroundColor": { "type": "string", "description": "背景色" }, "foregroundColor": { "type": "string", "description": "前景色" }, "level": { "type": "string", "enum": [ "L", "M", "Q", "H" ], "description": "二维码复杂级别" }, "placeholder": { "type": "string", "description": "占位符" }, "imageSettings": { "$ref": "#/definitions/QRCodeImageSettings", "description": "图片配置" }, "mode": { "type": "string", "enum": [ "canvas", "svg" ], "description": "渲染模式" }, "eyeType": { "type": "string", "enum": [ "default", "circle", "rounded" ], "description": "码眼类型" }, "eyeBorderColor": { "type": "string", "description": "码眼边框颜色", "default": "#000000" }, "eyeBorderSize": { "type": "string", "enum": [ "default", "sm", "xs" ], "description": "码眼边框大小", "default": "default" }, "eyeInnerColor": { "type": "string", "description": "码眼内部颜色", "default": "#000000" }, "pointType": { "type": "string", "enum": [ "default", "circle" ], "description": "码点类型" }, "pointSize": { "type": "string", "enum": [ "default", "sm", "xs" ], "description": "码点大小", "default": "default" }, "pointSizeRandom": { "type": "boolean", "description": "码点大小随机", "default": false } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "qrcode", "qr-code" ] }, "testid": true, "name": true, "qrcodeClassName": true, "codeSize": true, "backgroundColor": true, "foregroundColor": true, "level": true, "placeholder": true, "imageSettings": true, "mode": true, "eyeType": true, "eyeBorderColor": true, "eyeBorderSize": true, "eyeInnerColor": true, "pointType": true, "pointSize": true, "pointSizeRandom": true }, "required": [ "type" ], "description": "二维码展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/qrcode" }, "QRCodeImageSettings": { "type": "object", "properties": { "src": { "type": "string" }, "height": { "type": "number" }, "width": { "type": "number" }, "excavate": { "type": "boolean" }, "x": { "type": "number" }, "y": { "type": "number" } }, "required": [ "src", "height", "width", "excavate" ], "additionalProperties": false }, "SearchBoxSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "search-box", "description": "指定为搜索框。\n\n文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/search-box" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "外层 css 类名" }, "name": { "type": "string", "description": "关键字名字。", "default": "keywords" }, "placeholder": { "type": "string", "description": "占位符" }, "mini": { "type": "boolean", "description": "是否为 Mini 样式。" }, "enhance": { "type": "boolean", "description": "是否为加强样式" }, "clearable": { "type": "boolean", "description": "是否可清除" }, "searchImediately": { "type": "boolean", "description": "是否立马搜索。" }, "clearAndSubmit": { "type": "boolean", "description": "是否开启清空内容后立即重新搜索" }, "loading": { "type": "boolean", "description": "是否处于加载状态" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "search-box" }, "testid": true, "name": true, "placeholder": true, "mini": true, "enhance": true, "clearable": true, "searchImediately": true, "clearAndSubmit": true, "loading": true }, "required": [ "type" ], "description": "搜索框渲染器" }, "ServiceSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "service", "description": "指定为 Service 数据拉取控件。" }, "api": { "$ref": "#/definitions/SchemaApi", "description": "页面初始化的时候,可以设置一个 API 让其取拉取,发送数据会携带当前 data 数据(包含地址栏参数),获取得数据会合并到 data 中,供组件内使用。" }, "ws": { "type": "string", "description": "WebScocket 地址,用于实时获取数据" }, "dataProvider": { "$ref": "#/definitions/ComposedDataProvider", "description": "通过调用外部函数来获取数据" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "fetchOn": { "$ref": "#/definitions/SchemaExpression", "deprecated": "改成 api 的 sendOn。" }, "initFetch": { "type": "boolean", "description": "是否默认就拉取?" }, "initFetchOn": { "$ref": "#/definitions/SchemaExpression", "description": "是否默认就拉取?通过表达式来决定.", "deprecated": "改成 api 的 sendOn。" }, "schemaApi": { "$ref": "#/definitions/SchemaApi", "description": "用来获取远程 Schema 的 api" }, "initFetchSchema": { "type": "boolean", "description": "是否默认加载 schemaApi" }, "initFetchSchemaOn": { "$ref": "#/definitions/SchemaExpression", "description": "用表达式来配置。", "deprecated": "改成 api 的 sendOn。" }, "interval": { "type": "number", "description": "是否轮询拉取" }, "silentPolling": { "type": "boolean", "description": "是否静默拉取" }, "stopAutoRefreshWhen": { "$ref": "#/definitions/SchemaExpression", "description": "关闭轮询的条件。" }, "messages": { "$ref": "#/definitions/SchemaMessage" }, "name": { "$ref": "#/definitions/SchemaName" }, "showErrorMsg": { "type": "boolean", "description": "是否以Alert的形式显示api接口响应的错误信息,默认展示" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "service" }, "testid": true, "api": true, "ws": true, "dataProvider": true, "body": true, "fetchOn": true, "initFetch": true, "initFetchOn": true, "schemaApi": true, "initFetchSchema": true, "initFetchSchemaOn": true, "interval": true, "silentPolling": true, "stopAutoRefreshWhen": true, "messages": true, "name": true, "showErrorMsg": true }, "required": [ "type" ], "description": "Service 服务类控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/service" }, "ComposedDataProvider": { "anyOf": [ { "$ref": "#/definitions/DataProvider" }, { "$ref": "#/definitions/DataProviderCollection" } ] }, "DataProvider": { "type": "string" }, "DataProviderCollection": { "type": "object", "properties": { "inited": { "$ref": "#/definitions/DataProvider" }, "onApiFetched": { "$ref": "#/definitions/DataProvider" }, "onSchemaApiFetched": { "$ref": "#/definitions/DataProvider" }, "onWsFetched": { "$ref": "#/definitions/DataProvider" } }, "additionalProperties": false }, "SparkLineSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "sparkline" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "css 类名" }, "name": { "type": "string", "description": "关联数据变量。" }, "width": { "type": "number", "description": "宽度", "default": 100 }, "height": { "type": "number", "description": "高度", "default": 50 }, "clickAction": { "$ref": "#/definitions/ActionSchema", "description": "点击行为" }, "placeholder": { "type": "string", "description": "空数据时显示的内容" }, "value": { "type": "array", "items": { "anyOf": [ { "type": "number" }, { "type": "object", "properties": { "value": { "type": "number" }, "label": { "type": "string" } }, "required": [ "value" ], "additionalProperties": false } ] } } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "sparkline" }, "testid": true, "name": true, "width": true, "height": true, "clickAction": true, "placeholder": true, "value": true }, "required": [ "type" ] }, "StatusSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "status", "description": "指定为状态展示控件" }, "placeholder": { "type": "string", "description": "占位符", "default": "-" }, "map": { "type": "object", "additionalProperties": { "type": "string" }, "description": "状态图标映射关系", "deprecated": "已废弃,2.8.0 废弃,兼容中", "default": "{\n0: 'svg-fail',\n1: 'svg-success',\nsuccess: 'svg-success',\npending: 'rolling',\nfail: 'svg-fail',\nqueue: 'svg-warning',\nschedule: 'svg-schedule'\n}" }, "labelMap": { "type": "object", "additionalProperties": { "type": "string" }, "description": "文字映射关系", "deprecated": "已废弃,2.8.0 废弃,兼容中", "default": { "success": "成功", "pending": "运行中", "fail": "失败", "queue": "排队中", "schedule": "调度中" } }, "source": { "$ref": "#/definitions/StatusSource", "description": "新版配置映射源的字段 可以兼容新版icon并且配置颜色 2.8.0 新增" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "status" }, "testid": true, "placeholder": true, "map": true, "labelMap": true, "source": true }, "required": [ "type" ], "description": "状态展示控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/status" }, "StatusSource": { "type": "object", "additionalProperties": { "type": "object", "properties": { "icon": { "type": "string" }, "label": { "type": "string" }, "color": { "type": "string" }, "className": { "type": "string" } }, "additionalProperties": false } }, "SpinnerSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "spinner", "description": "组件类型" }, "show": { "type": "boolean", "description": "控制Spinner显示与隐藏" }, "className": { "type": "string", "description": "自定义spinner的class" }, "spinnerClassName": { "type": "string", "description": "spin图标位置包裹元素的自定义class" }, "spinnerWrapClassName": { "type": "string", "description": "作为容器使用时最外层元素的class" }, "mode": { "type": "string", "deprecated": "已废弃,没有作用" }, "size": { "type": "string", "enum": [ "sm", "lg", "" ], "description": "spinner Icon 大小" }, "icon": { "type": "string", "description": "自定义icon" }, "tip": { "type": "string", "description": "spinner文案" }, "tipPlacement": { "type": "string", "enum": [ "top", "right", "bottom", "left" ], "description": "spinner文案位置" }, "delay": { "type": "number", "description": "延迟显示" }, "overlay": { "type": "boolean", "description": "是否显示遮罩层" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "作为容器使用时内容" } }, "required": [ "type", "show" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "spinner" }, "testid": true, "show": true, "spinnerClassName": true, "spinnerWrapClassName": true, "mode": true, "size": true, "icon": true, "tip": true, "tipPlacement": true, "delay": true, "overlay": true, "body": true }, "required": [ "type", "show" ] }, "TableSchema": { "allOf": [ { "$ref": "#/definitions/BaseTableSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "table", "static-table" ] }, "testid": true, "affixHeader": true, "affixFooter": true, "columns": true, "columnsTogglable": true, "footable": true, "footerClassName": true, "headerClassName": true, "placeholder": true, "showIndex": true, "showFooter": true, "showHeader": true, "source": true, "tableClassName": true, "title": true, "toolbarClassName": true, "combineNum": true, "combineFromIndex": true, "prefixRow": true, "affixRow": true, "resizable": true, "rowClassNameExpr": true, "itemBadge": true, "autoGenerateFilter": true, "canAccessSuperData": true, "autoFillHeight": true, "tableLayout": true, "deferApi": true, "persistKey": true }, "required": [ "type" ] }, "TableSchema2": { "allOf": [ { "$ref": "#/definitions/BaseTableSchema2", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "table2" }, "testid": true, "title": true, "source": true, "columnsTogglable": true, "columns": true, "rowSelection": true, "expandable": true, "sticky": true, "loading": true, "itemBadge": true, "showBadge": true, "popOverContainer": true, "keyField": true, "childrenColumnName": true, "rowClassNameExpr": true, "lineHeight": true, "bordered": true, "showHeader": true, "footer": true, "quickSaveApi": true, "quickSaveItemApi": true, "messages": true, "reload": true, "actions": true, "maxKeepItemSelectionLength": true, "keepItemSelectionOnPageChange": true, "selectable": true, "multiple": true, "primaryField": true, "tableLayout": true, "autoFillHeight": true, "canAccessSuperData": true, "lazyRenderAfter": true }, "required": [ "type" ] }, "BaseTableSchema2": { "allOf": [ { "type": "object", "properties": { "title": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaObject" }, { "type": "array", "items": { "$ref": "#/definitions/SchemaObject" } } ], "description": "表格标题" }, "source": { "$ref": "#/definitions/SchemaTokenizeableString", "description": "表格数据源" }, "columnsTogglable": { "anyOf": [ { "type": "string", "const": "auto" }, { "type": "boolean" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "表格可自定义列" }, "columns": { "type": "array", "items": { "$ref": "#/definitions/ColumnSchema" }, "description": "表格列配置" }, "rowSelection": { "anyOf": [ { "$ref": "#/definitions/RowSelectionSchema" }, { "type": "boolean" } ], "description": "表格可选择配置" }, "expandable": { "$ref": "#/definitions/ExpandableSchema", "description": "表格行可展开配置" }, "sticky": { "type": "boolean", "description": "粘性头部" }, "loading": { "anyOf": [ { "type": "boolean" }, { "type": "string" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "加载中" }, "itemBadge": { "$ref": "#/definitions/BadgeObject", "description": "行角标内容" }, "showBadge": { "type": "boolean", "description": "是否展示行角标" }, "popOverContainer": { "description": "指定挂载dom" }, "keyField": { "type": "string", "description": "多选、嵌套展开记录的ID字段名 默认id" }, "childrenColumnName": { "type": "string", "description": "数据源嵌套自定义字段名" }, "rowClassNameExpr": { "type": "string", "description": "自定义行样式" }, "lineHeight": { "type": "string", "description": "是否固定内容行高度" }, "bordered": { "type": "boolean", "description": "是否展示边框" }, "showHeader": { "type": "boolean", "description": "是否展示表头" }, "footer": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaObject" }, { "type": "array", "items": { "$ref": "#/definitions/SchemaObject" } } ], "description": "指定表尾" }, "quickSaveApi": { "$ref": "#/definitions/SchemaApi", "description": "快速编辑后用来批量保存的 API" }, "quickSaveItemApi": { "$ref": "#/definitions/SchemaApi", "description": "快速编辑配置成及时保存时使用的 API" }, "messages": { "$ref": "#/definitions/SchemaMessage", "description": "接口报错信息配置" }, "reload": { "type": "string", "description": "重新加载的组件名称" }, "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "操作列配置" }, "maxKeepItemSelectionLength": { "type": "number", "description": "批量操作最大限制数" }, "keepItemSelectionOnPageChange": { "type": "boolean", "description": "翻页是否保存数据" }, "selectable": { "type": "boolean", "description": "是否可选择 作用同rowSelection 兼容原CRUD属性 默认多选" }, "multiple": { "type": "boolean", "description": "是否可多选 作用同rowSelection.type 兼容原CRUD属性 不设置认为是多选 仅设置selectable才起作用" }, "primaryField": { "type": "string", "description": "设置ID字段名 作用同keyFiled 兼容原CURD属性" }, "tableLayout": { "type": "string", "enum": [ "fixed", "auto" ] }, "autoFillHeight": { "anyOf": [ { "type": "boolean" }, { "$ref": "#/definitions/AutoFillHeightObject" } ], "description": "表格自动计算高度" }, "canAccessSuperData": { "type": "boolean", "description": "表格是否可以获取父级数据域值,默认为false" }, "lazyRenderAfter": { "type": "number", "description": "当一次性渲染太多列上有用,默认为 100,可以用来提升表格渲染性能", "default": 100 } }, "required": [ "source", "columns" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": true, "testid": true, "title": true, "source": true, "columnsTogglable": true, "columns": true, "rowSelection": true, "expandable": true, "sticky": true, "loading": true, "itemBadge": true, "showBadge": true, "popOverContainer": true, "keyField": true, "childrenColumnName": true, "rowClassNameExpr": true, "lineHeight": true, "bordered": true, "showHeader": true, "footer": true, "quickSaveApi": true, "quickSaveItemApi": true, "messages": true, "reload": true, "actions": true, "maxKeepItemSelectionLength": true, "keepItemSelectionOnPageChange": true, "selectable": true, "multiple": true, "primaryField": true, "tableLayout": true, "autoFillHeight": true, "canAccessSuperData": true, "lazyRenderAfter": true }, "required": [ "source", "columns" ] }, "ColumnSchema": { "type": "object", "properties": { "name": { "type": "string", "description": "指定列唯一标识" }, "title": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "指定列标题" }, "type": { "type": "string", "description": "指定列内容渲染器" }, "rowSpanExpr": { "type": "string", "description": "指定行合并表达式" }, "colSpanExpr": { "type": "string", "description": "指定列合并表达式" }, "children": { "type": "array", "items": { "$ref": "#/definitions/ColumnSchema" }, "description": "表头分组" }, "copyable": { "type": "boolean", "description": "可复制" }, "remark": { "type": "string", "description": "列表头提示" }, "searchable": { "anyOf": [ { "type": "boolean" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "快速搜索" }, "sorter": { "type": "boolean", "description": "快速排序" }, "sortable": { "type": "boolean", "description": "兼容table快速排序" }, "filterable": { "type": "object", "properties": { "source": { "type": "string" }, "options": { "type": "array", "items": {} } }, "additionalProperties": false, "description": "兼容table列筛选" }, "align": { "type": "string", "description": "内容居左、居中、居右" }, "headerAlign": { "type": "string", "enum": [ "left", "center", "right" ], "description": "标题内容居左、居中、居右" }, "vAlign": { "type": "string", "enum": [ "top", "middle", "bottom" ], "description": "列垂直对齐方式" }, "fixed": { "type": [ "boolean", "string" ], "description": "是否固定在左侧/右侧" }, "toggled": { "type": "boolean", "description": "当前列是否展示" }, "className": { "type": "string", "description": "列样式" }, "titleClassName": { "type": "string", "description": "表头单元格样式" }, "classNameExpr": { "type": "string", "description": "单元格样式" }, "quickEdit": { "$ref": "#/definitions/SchemaQuickEdit", "description": "配置快速编辑功能" }, "width": { "type": [ "string", "number" ] }, "canAccessSuperData": { "type": "boolean", "description": "表格列单元格是否可以获取父级数据域值,默认为true,该配置对当前列内单元格生效" } }, "required": [ "name", "title" ], "additionalProperties": false }, "RowSelectionSchema": { "type": "object", "properties": { "type": { "type": "string", "description": "选择类型 单选/多选" }, "keyField": { "type": "string", "description": "对应数据源的key值" }, "disableOn": { "type": "string", "description": "行是否禁用表达式" }, "selections": { "type": "array", "items": { "$ref": "#/definitions/RowSelectionOptionsSchema" }, "description": "自定义选择菜单" }, "selectedRowKeys": { "type": "array", "items": { "type": [ "string", "number" ] }, "description": "已选择的key值" }, "selectedRowKeysExpr": { "type": "string", "description": "已选择的key值表达式" }, "columnWidth": { "type": "number", "description": "已选择的key值表达式" }, "rowClick": { "type": "boolean", "description": "是否点击行触发选中或取消选中" } }, "required": [ "type" ], "additionalProperties": false }, "RowSelectionOptionsSchema": { "type": "object", "properties": { "key": { "type": "string", "description": "选择类型 选择全部" }, "text": { "type": "string", "description": "选项显示文本" } }, "required": [ "key", "text" ], "additionalProperties": false }, "ExpandableSchema": { "type": "object", "properties": { "type": { "type": "string", "description": "对应渲染器类型" }, "keyField": { "type": "string", "description": "对应数据源的key值" }, "expandableOn": { "type": "string", "description": "行是否可展开表达式" }, "expandedRowClassNameExpr": { "type": "string", "description": "展开行自定义样式表达式" }, "expandedRowKeys": { "type": "array", "items": { "type": [ "string", "number" ] }, "description": "已展开的key值" }, "expandedRowKeysExpr": { "type": "string", "description": "已展开的key值表达式" } }, "required": [ "type", "keyField", "expandableOn", "expandedRowClassNameExpr", "expandedRowKeys", "expandedRowKeysExpr" ], "additionalProperties": false }, "AutoFillHeightObject": { "type": "object", "properties": { "height": { "type": "number" }, "maxHeight": { "type": "number" } }, "required": [ "height", "maxHeight" ], "additionalProperties": false }, "TabsSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "tabs" }, "tabs": { "type": "array", "items": { "$ref": "#/definitions/TabSchema" }, "description": "选项卡成员。当配置了 source 时,选项卡成员,将会根据目标数据进行重复。" }, "source": { "type": "string", "description": "关联已有数据,选项卡直接根据目标数据重复。" }, "tabsMode": { "$ref": "#/definitions/TabsMode", "description": "展示形式" }, "contentClassName": { "$ref": "#/definitions/SchemaClassName", "description": "内容类名" }, "linksClassName": { "$ref": "#/definitions/SchemaClassName", "description": "链接外层类名" }, "mountOnEnter": { "type": "boolean", "description": "卡片是否只有在点开的时候加载?" }, "unmountOnExit": { "type": "boolean", "description": "卡片隐藏的时候是否销毁卡片内容" }, "toolbar": { "$ref": "#/definitions/ActionSchema", "description": "可以在右侧配置点其他功能按钮。" }, "subFormMode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "subFormHorizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "addable": { "type": "boolean", "description": "是否支持新增" }, "closable": { "type": "boolean", "description": "是否支持删除" }, "draggable": { "type": "boolean", "description": "是否支持拖拽" }, "showTip": { "type": "boolean", "description": "是否显示提示" }, "showTipClassName": { "type": "string", "description": "tooltip 提示的类名" }, "editable": { "type": "boolean", "description": "是否可编辑标签名" }, "scrollable": { "type": "boolean", "description": "是否导航支持内容溢出滚动。属性废弃,为了兼容暂且保留" }, "sidePosition": { "type": "string", "enum": [ "left", "right" ], "description": "编辑器模式,侧边的位置" }, "addBtnText": { "type": "string", "description": "自定义增加按钮文案" }, "defaultKey": { "anyOf": [ { "$ref": "#/definitions/SchemaExpression" }, { "type": "number" } ], "description": "初始化激活的选项卡,hash值或索引值,支持使用表达式" }, "activeKey": { "anyOf": [ { "$ref": "#/definitions/SchemaExpression" }, { "type": "number" } ], "description": "激活的选项卡,hash值或索引值,支持使用表达式" }, "collapseOnExceed": { "type": "number", "description": "超过多少个时折叠按钮" }, "collapseBtnLabel": { "type": "string", "description": "折叠按钮文字" }, "swipeable": { "type": "boolean", "description": "是否滑动切换只在移动端生效" } }, "required": [ "type", "tabs" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "tabs" }, "testid": true, "tabs": true, "source": true, "tabsMode": true, "contentClassName": true, "linksClassName": true, "mountOnEnter": true, "unmountOnExit": true, "toolbar": true, "subFormMode": true, "subFormHorizontal": true, "addable": true, "closable": true, "draggable": true, "showTip": true, "showTipClassName": true, "editable": true, "scrollable": true, "sidePosition": true, "addBtnText": true, "defaultKey": true, "activeKey": true, "collapseOnExceed": true, "collapseBtnLabel": true, "swipeable": true }, "required": [ "type", "tabs" ], "description": "选项卡控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/tabs" }, "TabSchema": { "allOf": [ { "type": "object", "properties": { "title": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaObject" } ], "description": "Tab 标题" }, "tab": { "$ref": "#/definitions/SchemaCollection", "description": "内容", "deprecated": "用 body 属性" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容" }, "badge": { "type": "number", "description": "徽标" }, "hash": { "type": "string", "description": "设置以后将跟url的hash对应" }, "icon": { "$ref": "#/definitions/SchemaIcon", "description": "按钮图标" }, "iconPosition": { "type": "string", "enum": [ "left", "right" ] }, "reload": { "type": "boolean", "description": "设置以后内容每次都会重新渲染" }, "mountOnEnter": { "type": "boolean", "description": "点开时才加载卡片内容" }, "unmountOnExit": { "type": "boolean", "description": "卡片隐藏就销毁卡片节点。" }, "mode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "horizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "closable": { "type": "boolean", "description": "是否可关闭,优先级高于 tabs 的 closable" }, "disabled": { "type": "boolean", "description": "是否禁用" } } }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "tab": true, "body": true, "badge": true, "hash": true, "icon": true, "iconPosition": true, "reload": true, "mountOnEnter": true, "unmountOnExit": true, "mode": true, "horizontal": true, "closable": true } }, "TabsMode": { "type": "string", "enum": [ "", "line", "card", "radio", "vertical", "chrome", "simple", "strong", "tiled", "sidebar" ] }, "TasksSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "tasks", "description": "指定为任务类型" }, "btnClassName": { "$ref": "#/definitions/SchemaClassName" }, "btnText": { "type": "string", "description": "操作按钮文字", "default": "上线" }, "checkApi": { "$ref": "#/definitions/SchemaApi", "description": "用来获取任务状态的 API,当没有进行时任务时不会发送。" }, "interval": { "type": "number", "description": "当有任务进行中,会每隔一段时间再次检测,而时间间隔就是通过此项配置,默认 3s。", "default": 3000 }, "items": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string", "description": "任务键值,请唯一区分" }, "label": { "type": "string", "description": "任务名称" }, "remark": { "type": "string", "description": "当前任务状态,支持 html" }, "status": { "type": "number", "enum": [ 0, 1, 2, 3, 4, 5 ], "description": "任务状态: 0: 初始状态,不可操作。 1: 就绪,可操作状态。 2: 进行中,还没有结束。 3:有错误,不可重试。 4: 已正常结束。 5:有错误,且可以重试。" } }, "additionalProperties": false } }, "name": { "$ref": "#/definitions/SchemaName" }, "operationLabel": { "type": "string", "description": "操作列说明" }, "reSubmitApi": { "$ref": "#/definitions/SchemaApi", "description": "如果任务失败,且可以重试,提交的时候会使用此 API" }, "remarkLabel": { "type": "string", "description": "备注列说明", "default": "备注" }, "retryBtnClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置容器重试按钮 className", "default": "btn-sm btn-danger" }, "retryBtnText": { "type": "string", "description": "重试操作按钮文字", "default": "重试" }, "statusLabel": { "type": "string", "description": "状态列说明", "default": "状态" }, "statusLabelMap": { "type": "array", "items": { "type": "string" }, "description": "状态显示对应的类名配置。", "default": [ "label-warning", "label-info", "label-success", "label-danger", "label-default", "label-danger" ] }, "statusTextMap": { "type": "array", "items": { "type": "string" }, "description": "状态显示对应的文字显示配置。", "default": "[\"未开始\", \"就绪\", \"进行中\", \"出错\", \"已完成\", \"出错\"]," }, "submitApi": { "$ref": "#/definitions/SchemaApi", "description": "提交任务使用的 API" }, "tableClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置 table className" }, "taskNameLabel": { "type": "string", "description": "任务名称列说明", "default": "任务名称" }, "initialStatusCode": { "type": "number" }, "readyStatusCode": { "type": "number" }, "loadingStatusCode": { "type": "number" }, "canRetryStatusCode": { "type": "number" }, "finishStatusCode": { "type": "number" }, "errorStatusCode": { "type": "number" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "tasks" }, "testid": true, "btnClassName": true, "btnText": true, "checkApi": true, "interval": true, "items": true, "name": true, "operationLabel": true, "reSubmitApi": true, "remarkLabel": true, "retryBtnClassName": true, "retryBtnText": true, "statusLabel": true, "statusLabelMap": true, "statusTextMap": true, "submitApi": true, "tableClassName": true, "taskNameLabel": true, "initialStatusCode": true, "readyStatusCode": true, "loadingStatusCode": true, "canRetryStatusCode": true, "finishStatusCode": true, "errorStatusCode": true }, "required": [ "type" ], "description": "Tasks 渲染器,格式说明 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/tasks" }, "VBoxSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "vbox" }, "rows": { "type": "array", "items": { "$ref": "#/definitions/HboxRow" }, "description": "行集合" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "vbox" }, "testid": true, "rows": true }, "required": [ "type" ], "description": "垂直布局控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/vbox" }, "HboxRow": { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "type": "object", "properties": { "rowClassName": { "type": "string" }, "cellClassName": { "type": "string" } }, "additionalProperties": true } ] }, "VideoSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "video", "description": "指定为视频类型" }, "autoPlay": { "type": "boolean", "description": "是否自动播放" }, "columnsCount": { "type": "number", "description": "如果显示切帧,通过此配置项可以控制每行显示多少帧" }, "frames": { "type": "object", "additionalProperties": { "type": "string" }, "description": "设置后,可以显示切帧.点击帧的时候会将视频跳到对应时间。\n\nframes: { '01:22': 'http://domain/xxx.jpg' }" }, "framesClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置帧列表容器className" }, "style": { "type": "object", "description": "组件样式" }, "isLive": { "type": "boolean", "description": "如果是实时的,请标记一下" }, "jumpFrame": { "type": "boolean", "description": "点击帧画面时是否跳转视频对应的点", "default": true }, "muted": { "type": "boolean", "description": "是否初始静音" }, "loop": { "type": "boolean", "description": "是否循环播放" }, "playerClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置播放器 className" }, "poster": { "$ref": "#/definitions/SchemaUrlPath", "description": "视频封面地址" }, "splitPoster": { "type": "boolean", "description": "是否将视频和封面分开显示" }, "src": { "$ref": "#/definitions/SchemaUrlPath", "description": "视频播放地址" }, "videoType": { "type": "string", "description": "视频类型如: video/x-flv" }, "aspectRatio": { "type": "string", "enum": [ "auto", "4:3", "16:9" ], "description": "视频比率" }, "rates": { "type": "array", "items": { "type": "number" }, "description": "视频速率" }, "jumpBufferDuration": { "type": "number", "description": "跳转到帧时,往前多少秒。" }, "stopOnNextFrame": { "type": "boolean", "description": "默认播放的时候到了下一帧会继续播放,同时高亮下一帧。 如果配置这个则会停止播放,等待用户选择新的区间再播放。" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "video" }, "testid": true, "autoPlay": true, "columnsCount": true, "frames": true, "framesClassName": true, "isLive": true, "jumpFrame": true, "muted": true, "loop": true, "playerClassName": true, "poster": true, "splitPoster": true, "src": true, "videoType": true, "aspectRatio": true, "rates": true, "jumpBufferDuration": true, "stopOnNextFrame": true }, "required": [ "type" ], "description": "视频播放器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/video" }, "WizardSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "wizard", "description": "指定为表单向导" }, "actionClassName": { "$ref": "#/definitions/SchemaClassName", "description": "配置按钮 className" }, "actionFinishLabel": { "type": "string", "description": "完成按钮的文字描述" }, "actionNextLabel": { "type": "string", "description": "下一步按钮的文字描述" }, "actionNextSaveLabel": { "type": "string", "description": "下一步并且保存按钮的文字描述" }, "actionPrevLabel": { "type": "string", "description": "上一步按钮的文字描述" }, "api": { "$ref": "#/definitions/SchemaApi", "description": "Wizard 用来保存数据的 api。 [详情](https://baidu.github.io/amis/docs/api#wizard)" }, "bulkSubmit": { "type": "boolean", "description": "是否合并后再提交" }, "initApi": { "$ref": "#/definitions/SchemaApi", "description": "Wizard 用来获取初始数据的 api。" }, "mode": { "type": "string", "enum": [ "vertical", "horizontal" ], "description": "展示模式", "default": "vertical" }, "name": { "$ref": "#/definitions/SchemaName" }, "readOnly": { "type": "boolean", "description": "是否为只读模式。" }, "redirect": { "type": "string", "description": "保存完后,可以指定跳转地址,支持相对路径和组内绝对路径,同时可以通过 $xxx 使用变量" }, "reload": { "$ref": "#/definitions/SchemaReload" }, "target": { "type": "string", "description": "默认表单提交自己会通过发送 api 保存数据,但是也可以设定另外一个 form 的 name 值,或者另外一个 `CRUD` 模型的 name 值。 如果 target 目标是一个 `Form` ,则目标 `Form` 会重新触发 `initApi` 和 `schemaApi`,api 可以拿到当前 form 数据。如果目标是一个 `CRUD` 模型,则目标模型会重新触发搜索,参数为当前 Form 数据。" }, "affixFooter": { "anyOf": [ { "type": "boolean" }, { "type": "string", "const": "always" } ], "description": "是否将底部按钮固定在底部。" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/WizardStepSchema" } }, "startStep": { "type": "string" }, "stepsClassName": { "type": "string", "description": "步骤条区域css类" }, "bodyClassName": { "type": "string", "description": "表单区域css类" }, "stepClassName": { "type": "string", "description": "step + body区域css类" }, "footerClassName": { "type": "string", "description": "底部操作栏的css类" }, "wrapWithPanel": { "type": "boolean", "description": "是否用panel包裹" } }, "required": [ "type", "steps" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "wizard" }, "testid": true, "actionClassName": true, "actionFinishLabel": true, "actionNextLabel": true, "actionNextSaveLabel": true, "actionPrevLabel": true, "api": true, "bulkSubmit": true, "initApi": true, "mode": true, "name": true, "readOnly": true, "redirect": true, "reload": true, "target": true, "affixFooter": true, "steps": true, "startStep": true, "stepsClassName": true, "bodyClassName": true, "stepClassName": true, "footerClassName": true, "wrapWithPanel": true }, "required": [ "type", "steps" ], "description": "表单向导 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/wizard" }, "WizardStepSchema": { "allOf": [ { "type": "object", "properties": { "api": { "$ref": "#/definitions/SchemaApi", "description": "当前步骤用来保存数据的 api。" }, "asyncApi": { "$ref": "#/definitions/SchemaApi", "description": "设置此属性后,表单提交发送保存接口后,还会继续轮询请求该接口,直到返回 finished 属性为 true 才 结束。" }, "initApi": { "$ref": "#/definitions/SchemaApi", "description": "当前步骤用来获取初始数据的 api" }, "jumpable": { "type": "boolean", "description": "是否可直接跳转到该步骤,一般编辑模式需要可直接跳转查看。" }, "jumpableOn": { "$ref": "#/definitions/SchemaExpression", "description": "通过 JS 表达式来配置当前步骤可否被直接跳转到。" }, "title": { "type": "string", "description": "Step 标题" }, "label": { "type": "string" }, "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "每一步可以单独配置按钮。如果不配置wizard会自动生成。" }, "redirect": { "type": "string", "description": "保存完后,可以指定跳转地址,支持相对路径和组内绝对路径,同时可以通过 $xxx 使用变量" }, "reload": { "$ref": "#/definitions/SchemaReload" }, "target": { "type": "string", "description": "默认表单提交自己会通过发送 api 保存数据,但是也可以设定另外一个 form 的 name 值,或者另外一个 `CRUD` 模型的 name 值。 如果 target 目标是一个 `Form` ,则目标 `Form` 会重新触发 `initApi` 和 `schemaApi`,api 可以拿到当前 form 数据。如果目标是一个 `CRUD` 模型,则目标模型会重新触发搜索,参数为当前 Form 数据。" } } }, { "$ref": "#/definitions/BaseFormSchema", "additionalProperties": true }, { "$ref": "#/definitions/StepSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "subTitle": true, "icon": true, "value": true, "description": true, "actions": true, "body": true, "tabs": true, "fieldSet": true, "data": true, "debug": true, "debugConfig": true, "initApi": true, "initAsyncApi": true, "initFinishedField": true, "initCheckInterval": true, "initFetch": true, "initFetchOn": true, "interval": true, "silentPolling": true, "stopAutoRefreshWhen": true, "persistData": true, "persistDataKeys": true, "clearPersistDataAfterSubmit": true, "api": true, "feedback": true, "asyncApi": true, "checkInterval": true, "finishedField": true, "resetAfterSubmit": true, "clearAfterSubmit": true, "mode": true, "columnCount": true, "horizontal": true, "autoFocus": true, "messages": true, "name": true, "panelClassName": true, "primaryField": true, "redirect": true, "reload": true, "submitOnChange": true, "submitOnInit": true, "submitText": true, "target": true, "wrapWithPanel": true, "affixFooter": true, "promptPageLeave": true, "promptPageLeaveMessage": true, "rules": true, "preventEnterSubmit": true, "labelAlign": true, "labelWidth": true, "jumpable": true, "jumpableOn": true, "label": true } }, "BaseFormSchema": { "allOf": [ { "type": "object", "properties": { "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "按钮集合,会固定在底部显示。" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "表单项集合" } } }, { "$ref": "#/definitions/FormSchemaBase", "additionalProperties": true }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "actions": true, "body": true, "tabs": true, "fieldSet": true, "data": true, "debug": true, "debugConfig": true, "initApi": true, "initAsyncApi": true, "initFinishedField": true, "initCheckInterval": true, "initFetch": true, "initFetchOn": true, "interval": true, "silentPolling": true, "stopAutoRefreshWhen": true, "persistData": true, "persistDataKeys": true, "clearPersistDataAfterSubmit": true, "api": true, "feedback": true, "asyncApi": true, "checkInterval": true, "finishedField": true, "resetAfterSubmit": true, "clearAfterSubmit": true, "mode": true, "columnCount": true, "horizontal": true, "autoFocus": true, "messages": true, "name": true, "panelClassName": true, "primaryField": true, "redirect": true, "reload": true, "submitOnChange": true, "submitOnInit": true, "submitText": true, "target": true, "wrapWithPanel": true, "affixFooter": true, "promptPageLeave": true, "promptPageLeaveMessage": true, "rules": true, "preventEnterSubmit": true, "labelAlign": true, "labelWidth": true }, "description": "Form 表单渲染器。\n\n说明:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/index" }, "FormSchemaBase": { "type": "object", "properties": { "title": { "type": "string", "description": "表单标题" }, "actions": { "type": "array", "items": {}, "description": "按钮集合,会固定在底部显示。" }, "body": { "description": "表单项集合" }, "tabs": { "deprecated": "请用类型 tabs" }, "fieldSet": { "deprecated": "请用类型 fieldSet" }, "data": {}, "debug": { "type": "boolean", "description": "是否开启调试,开启后会在顶部实时显示表单项数据。" }, "debugConfig": { "type": "object", "properties": { "levelExpand": { "type": "number", "description": "默认展开的级别" }, "enableClipboard": { "type": "boolean", "description": "是否可复制" }, "iconStyle": { "type": "string", "enum": [ "square", "circle", "triangle" ], "description": "图标风格" }, "quotesOnKeys": { "type": "boolean", "description": "是否显示键的引号" }, "sortKeys": { "type": "boolean", "description": "是否为键排序" }, "ellipsisThreshold": { "anyOf": [ { "type": "number" }, { "type": "boolean", "const": false } ], "description": "设置字符串的最大展示长度,超出长度阈值的字符串将被截断,点击value可切换字符串展示方式,默认为120" }, "labelOverflow": { "type": "string", "enum": [ "default", "ellipsis" ] } }, "additionalProperties": false, "description": "Debug面板配置" }, "initApi": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseApiObject" } ], "description": "用来初始化表单数据" }, "initAsyncApi": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseApiObject" } ], "description": "Form 用来获取初始数据的 api,与initApi不同的是,会一直轮询请求该接口,直到返回 finished 属性为 true 才 结束。" }, "initFinishedField": { "type": "string", "description": "设置了initAsyncApi后,默认会从返回数据的data.finished来判断是否完成,也可以设置成其他的xxx,就会从data.xxx中获取" }, "initCheckInterval": { "type": "number", "description": "设置了initAsyncApi以后,默认拉取的时间间隔" }, "initFetch": { "type": "boolean", "description": "是否初始加载" }, "initFetchOn": { "type": "string", "description": "建议改成 api 的 sendOn 属性。" }, "interval": { "type": "number", "description": "设置后将轮询调用 initApi" }, "silentPolling": { "type": "boolean", "description": "是否静默拉取" }, "stopAutoRefreshWhen": { "type": "string", "description": "配置停止轮询的条件" }, "persistData": { "type": "string", "description": "是否开启本地缓存" }, "persistDataKeys": { "type": "array", "items": { "type": "string" }, "description": "开启本地缓存后限制保存哪些 key" }, "clearPersistDataAfterSubmit": { "type": "boolean", "description": "提交成功后清空本地缓存" }, "api": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseApiObject" } ], "description": "Form 用来保存数据的 api。\n\n详情:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/index#%E8%A1%A8%E5%8D%95%E6%8F%90%E4%BA%A4" }, "feedback": { "description": "Form 也可以配置 feedback。" }, "asyncApi": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseApiObject" } ], "description": "设置此属性后,表单提交发送保存接口后,还会继续轮询请求该接口,直到返回 finished 属性为 true 才 结束。" }, "checkInterval": { "type": "number", "description": "轮询请求的时间间隔,默认为 3秒。设置 asyncApi 才有效" }, "finishedField": { "type": "string", "description": "如果决定结束的字段名不是 `finished` 请设置此属性,比如 `is_success`" }, "resetAfterSubmit": { "type": "boolean", "description": "提交完后重置表单" }, "clearAfterSubmit": { "type": "boolean", "description": "提交后清空表单" }, "mode": { "type": "string", "enum": [ "normal", "inline", "horizontal", "flex" ], "description": "配置表单项默认的展示方式。" }, "columnCount": { "type": "number", "description": "表单项显示为几列" }, "horizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "autoFocus": { "type": "boolean", "description": "是否自动将第一个表单元素聚焦。" }, "messages": { "type": "object", "properties": { "validateFailed": { "type": "string", "description": "表单验证失败时的提示" } }, "additionalProperties": false, "description": "消息文案配置,记住这个优先级是最低的,如果你的接口返回了 msg,接口返回的优先。" }, "name": { "type": "string" }, "panelClassName": { "$ref": "#/definitions/ClassName", "description": "配置容器 panel className" }, "primaryField": { "type": "string", "description": "设置主键 id, 当设置后,检测表单是否完成时(asyncApi),只会携带此数据。", "default": "id" }, "redirect": { "type": "string" }, "reload": { "type": "string" }, "submitOnChange": { "type": "boolean", "description": "修改的时候是否直接提交表单。" }, "submitOnInit": { "type": "boolean", "description": "表单初始先提交一次,联动的时候有用" }, "submitText": { "type": "string", "description": "默认的提交按钮名称,如果设置成空,则可以把默认按钮去掉。" }, "target": { "type": "string", "description": "默认表单提交自己会通过发送 api 保存数据,但是也可以设定另外一个 form 的 name 值,或者另外一个 `CRUD` 模型的 name 值。 如果 target 目标是一个 `Form` ,则目标 `Form` 会重新触发 `initApi` 和 `schemaApi`,api 可以拿到当前 form 数据。如果目标是一个 `CRUD` 模型,则目标模型会重新触发搜索,参数为当前 Form 数据。" }, "wrapWithPanel": { "type": "boolean", "description": "是否用 panel 包裹起来" }, "affixFooter": { "type": "boolean", "description": "是否固定底下的按钮在底部。" }, "promptPageLeave": { "type": "boolean", "description": "页面离开提示,为了防止页面不小心跳转而导致表单没有保存。" }, "promptPageLeaveMessage": { "type": "string", "description": "具体的提示信息,选填。" }, "rules": { "type": "array", "items": { "type": "object", "properties": { "rule": { "type": "string" }, "message": { "type": "string" }, "name": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, "required": [ "rule", "message" ], "additionalProperties": false }, "description": "组合校验规则,选填" }, "preventEnterSubmit": { "type": "boolean", "description": "禁用回车提交" }, "labelAlign": { "$ref": "#/definitions/LabelAlign", "description": "表单label的对齐方式" }, "labelWidth": { "type": [ "number", "string" ], "description": "label自定义宽度,默认单位为px" }, "static": { "type": "boolean", "description": "展示态时的className" }, "staticOn": { "$ref": "#/definitions/SchemaExpression" }, "staticClassName": { "$ref": "#/definitions/SchemaClassName" } }, "additionalProperties": false }, "StepSchema": { "allOf": [ { "type": "object", "properties": { "title": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaCollection" } ], "description": "标题" }, "subTitle": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaCollection" } ], "description": "子标题" }, "icon": { "type": "string", "description": "图标" }, "value": { "type": [ "string", "number" ] }, "description": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/SchemaCollection" } ], "description": "描述" } } }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "subTitle": true, "icon": true, "value": true, "description": true } }, "WrapperSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "wrapper", "description": "指定为 container 类型" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容" }, "size": { "type": "string", "enum": [ "xs", "sm", "md", "lg", "none" ] }, "wrap": { "type": "boolean" }, "style": { "type": "object", "description": "自定义样式" } }, "required": [ "type", "body" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "wrapper" }, "testid": true, "body": true, "size": true, "wrap": true }, "required": [ "type", "body" ], "description": "Wrapper 容器渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/wrapper" }, "TooltipWrapperSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "tooltip-wrapper", "description": "文字提示容器" }, "title": { "type": "string", "description": "文字提示标题" }, "content": { "type": "string", "description": "文字提示内容,兼容 tooltip,但建议通过 content 来实现提示内容" }, "tooltip": { "type": "string", "deprecated": "文字提示内容" }, "placement": { "type": "string", "enum": [ "top", "right", "bottom", "left" ], "description": "文字提示浮层出现位置,默认为top" }, "offset": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2, "description": "浮层位置相对偏移量" }, "showArrow": { "type": "boolean", "description": "是否展示浮层指向箭头" }, "disabled": { "type": "boolean", "description": "是否禁用提示" }, "trigger": { "anyOf": [ { "$ref": "#/definitions/Trigger" }, { "type": "array", "items": { "$ref": "#/definitions/Trigger" } } ], "description": "浮层触发方式,默认为hover" }, "mouseEnterDelay": { "type": "number", "description": "浮层延迟显示时间, 单位 ms" }, "mouseLeaveDelay": { "type": "number", "description": "浮层延迟隐藏时间, 单位 ms" }, "rootClose": { "type": "boolean", "description": "是否点击非内容区域关闭提示,默认为true" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "wrapperComponent": { "type": "string", "description": "内容区包裹标签" }, "inline": { "type": "boolean", "description": "内容区是否内联显示,默认为false" }, "tooltipTheme": { "type": "string", "enum": [ "light", "dark" ], "description": "主题样式, 默认为light" }, "style": { "type": "object", "description": "内容区自定义样式" }, "enterable": { "type": "boolean", "description": "是否可以移入浮层中, 默认true" }, "tooltipStyle": { "type": "object", "description": "自定义提示浮层样式" }, "className": { "type": "string", "description": "内容区CSS类名" }, "tooltipArrowClassName": { "type": "string", "description": "箭头CSS类名" }, "tooltipClassName": { "type": "string", "description": "文字提示浮层CSS类名" } }, "required": [ "type", "wrapperComponent" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "tooltip-wrapper" }, "testid": true, "title": true, "content": true, "tooltip": true, "placement": true, "offset": true, "showArrow": true, "trigger": true, "mouseEnterDelay": true, "mouseLeaveDelay": true, "rootClose": true, "body": true, "wrapperComponent": true, "inline": true, "tooltipTheme": true, "enterable": true, "tooltipStyle": true, "tooltipArrowClassName": true, "tooltipClassName": true }, "required": [ "type", "wrapperComponent" ] }, "Trigger": { "type": "string", "enum": [ "hover", "click", "focus" ] }, "FormSchema": { "allOf": [ { "type": "object", "properties": { "actions": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "按钮集合,会固定在底部显示。" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "表单项集合" } } }, { "$ref": "#/definitions/FormSchemaBase", "additionalProperties": true }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "actions": true, "body": true, "tabs": true, "fieldSet": true, "data": true, "debug": true, "debugConfig": true, "initApi": true, "initAsyncApi": true, "initFinishedField": true, "initCheckInterval": true, "initFetch": true, "initFetchOn": true, "interval": true, "silentPolling": true, "stopAutoRefreshWhen": true, "persistData": true, "persistDataKeys": true, "clearPersistDataAfterSubmit": true, "api": true, "feedback": true, "asyncApi": true, "checkInterval": true, "finishedField": true, "resetAfterSubmit": true, "clearAfterSubmit": true, "mode": true, "columnCount": true, "horizontal": true, "autoFocus": true, "messages": true, "name": true, "panelClassName": true, "primaryField": true, "redirect": true, "reload": true, "submitOnChange": true, "submitOnInit": true, "submitText": true, "target": true, "wrapWithPanel": true, "affixFooter": true, "promptPageLeave": true, "promptPageLeaveMessage": true, "rules": true, "preventEnterSubmit": true, "labelAlign": true, "labelWidth": true, "type": { "type": "string", "const": "form" } }, "required": [ "type" ] }, "AnchorNavSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "anchor-nav", "description": "指定为 AnchorNav 锚点导航渲染器" }, "links": { "type": "array", "items": { "$ref": "#/definitions/AnchorNavSectionSchema" }, "description": "楼层集合" }, "active": { "type": [ "string", "number" ], "description": "被激活(定位)的楼层" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "样式名" }, "linkClassName": { "$ref": "#/definitions/SchemaClassName", "description": "导航样式名" }, "sectionClassName": { "$ref": "#/definitions/SchemaClassName", "description": "楼层样式名" }, "direction": { "type": "string", "enum": [ "vertical", "horizontal" ] } }, "required": [ "type", "links" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "anchor-nav" }, "testid": true, "links": true, "active": true, "linkClassName": true, "sectionClassName": true, "direction": true }, "required": [ "type", "links" ], "description": "AnchorNav 锚点导航渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/anchor-nav" }, "AnchorNavSectionSchema": { "allOf": [ { "type": "object", "properties": { "title": { "type": "string", "description": "导航文字说明" }, "href": { "type": "string", "description": "锚点链接" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容" }, "children": { "type": "array", "items": { "$ref": "#/definitions/AnchorNavSectionSchema" }, "description": "子节点" } }, "required": [ "title" ] }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "href": true, "body": true, "children": true }, "required": [ "title" ], "description": "AnchorNavSection 锚点区域渲染器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/anchor-nav" }, "StepsSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "steps", "description": "指定为 Steps 步骤条渲染器" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/StepSchema" }, "description": "步骤" }, "source": { "type": "string", "description": "API 或 数据映射" }, "value": { "type": [ "number", "string" ], "description": "指定当前步骤" }, "name": { "type": "string", "description": "变量映射" }, "status": { "anyOf": [ { "$ref": "#/definitions/StepStatus" }, { "type": "object", "additionalProperties": { "$ref": "#/definitions/StepStatus" } }, { "$ref": "#/definitions/SchemaExpression" } ] }, "mode": { "type": "string", "enum": [ "horizontal", "vertical" ], "description": "展示模式" }, "labelPlacement": { "type": "string", "enum": [ "horizontal", "vertical" ], "description": "标签放置位置" }, "progressDot": { "type": "boolean", "description": "点状步骤条" }, "iconPosition": { "type": "boolean", "const": false, "description": "切换图标位置" } }, "required": [ "type", "iconPosition" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "steps" }, "testid": true, "steps": true, "source": true, "value": true, "name": true, "status": true, "mode": true, "labelPlacement": true, "progressDot": true, "iconPosition": true }, "required": [ "type", "iconPosition" ] }, "StepStatus": { "type": "string", "enum": [ "wait", "process", "finish", "error" ] }, "PortletSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "portlet", "description": "指定为 portlet 类型" }, "tabs": { "type": "array", "items": { "$ref": "#/definitions/PortletTabSchema" } }, "source": { "type": "string", "description": "关联已有数据,选项卡直接根据目标数据重复。" }, "tabsClassName": { "$ref": "#/definitions/SchemaClassName", "description": "类名" }, "tabsMode": { "type": "string", "enum": [ "", "line", "card", "radio", "vertical", "tiled" ], "description": "展示形式" }, "contentClassName": { "$ref": "#/definitions/SchemaClassName", "description": "内容类名" }, "linksClassName": { "$ref": "#/definitions/SchemaClassName", "description": "链接外层类名" }, "mountOnEnter": { "type": "boolean", "description": "卡片是否只有在点开的时候加载?" }, "unmountOnExit": { "type": "boolean", "description": "卡片隐藏的时候是否销毁卡片内容" }, "toolbar": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "可以在右侧配置点其他功能按钮。不会随着tab切换" }, "scrollable": { "type": "boolean", "description": "是否支持溢出滚动" }, "divider": { "type": "boolean", "description": "header和内容是否展示分割线" }, "description": { "$ref": "#/definitions/SchemaTpl", "description": "标题右侧的描述" }, "hideHeader": { "type": "boolean", "description": "隐藏头部" }, "style": { "type": "object", "description": "自定义样式" } }, "required": [ "type", "tabs" ] }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "portlet" }, "tabs": true, "source": true, "tabsClassName": true, "tabsMode": true, "contentClassName": true, "linksClassName": true, "mountOnEnter": true, "unmountOnExit": true, "toolbar": true, "scrollable": true, "divider": true, "description": true, "hideHeader": true }, "required": [ "type", "tabs" ] }, "PortletTabSchema": { "allOf": [ { "type": "object", "properties": { "title": { "type": "string", "description": "Tab 标题" }, "tab": { "$ref": "#/definitions/SchemaCollection", "description": "内容", "deprecated": "用 body 属性" }, "toolbar": { "type": "array", "items": { "$ref": "#/definitions/ActionSchema" }, "description": "可以在右侧配置点其他功能按钮,随着tab切换而切换" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容" }, "icon": { "$ref": "#/definitions/SchemaIcon", "description": "按钮图标" }, "iconPosition": { "type": "string", "enum": [ "left", "right" ] }, "reload": { "type": "boolean", "description": "设置以后内容每次都会重新渲染" }, "mountOnEnter": { "type": "boolean", "description": "点开时才加载卡片内容" }, "unmountOnExit": { "type": "boolean", "description": "卡片隐藏就销毁卡片节点。" } } }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "title": true, "tab": true, "toolbar": true, "body": true, "icon": true, "iconPosition": true, "reload": true, "mountOnEnter": true, "unmountOnExit": true }, "description": "栏目容器渲染器。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/portlet" }, "TimelineSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "timeline", "description": "指定为 Timeline 时间轴渲染器" }, "items": { "type": "array", "items": { "$ref": "#/definitions/TimelineItemSchema" }, "description": "节点数据" }, "source": { "anyOf": [ { "$ref": "#/definitions/SchemaApi" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "API 或 数据映射" }, "mode": { "type": "string", "enum": [ "left", "right", "top", "bottom", "alternate" ], "description": "文字相对于时间轴展示方向" }, "direction": { "type": "string", "enum": [ "horizontal", "vertical" ], "description": "展示方向" }, "reverse": { "type": "boolean", "description": "节点倒序" }, "itemTitleSchema": { "$ref": "#/definitions/SchemaCollection", "description": "节点title自定一展示模板" }, "iconClassName": { "type": "string", "description": "图标的CSS类名" }, "timeClassName": { "type": "string", "description": "节点时间的CSS类名" }, "titleClassName": { "type": "string", "description": "节点标题的CSS类名" }, "detailClassName": { "type": "string", "description": "节点详情的CSS类名" }, "cardSchema": { "$ref": "#/definitions/CardSchema", "description": "卡片展示配置,如果传入则将items数据传入cardSchema中循环渲染,itemTitleSchema、titleClassName、detailClassName将不生效。配置后 timeline item中的数据都将可以在cardSchema中通过数据方式引用。如果子节点也配置了cardSchema,则子节点的cardSchema优先级高于timeline的cardSchema" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "timeline" }, "testid": true, "items": true, "source": true, "mode": true, "direction": true, "reverse": true, "itemTitleSchema": true, "iconClassName": true, "timeClassName": true, "titleClassName": true, "detailClassName": true, "cardSchema": true }, "required": [ "type" ] }, "TimelineItemSchema": { "allOf": [ { "type": "object", "properties": { "time": { "type": "string", "description": "时间点" }, "title": { "$ref": "#/definitions/SchemaCollection", "description": "时间节点标题" }, "detail": { "type": "string", "description": "详细内容" }, "detailCollapsedText": { "type": "string", "description": "detail折叠时文案" }, "detailExpandedText": { "type": "string", "description": "detail展开时文案" }, "color": { "type": "string", "description": "时间点圆圈颜色" }, "icon": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/IconCheckedSchema" } ], "description": "图标" }, "iconClassName": { "type": "string", "description": "图标的CSS类名" }, "timeClassName": { "type": "string", "description": "节点时间的CSS类名(优先级高于统一配置的timeClassName)" }, "titleClassName": { "type": "string", "description": "节点标题的CSS类名(优先级高于统一配置的titleClassName)" }, "detailClassName": { "type": "string", "description": "节点详情的CSS类名(优先级高于统一配置的detailClassName)" }, "dotSize": { "type": "string", "enum": [ "sm", "md", "lg", "xl" ] }, "lineColor": { "type": "string" }, "hideDot": { "type": "boolean" }, "cardSchema": { "$ref": "#/definitions/CardSchema", "description": "卡片展示配置,如果传入则以卡片形式展示,传入对象转为卡片展示,传入的time、title、detail及相关属性将被忽略,只有连线配置和节点圆圈配置生效" } }, "required": [ "time" ] }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "time": true, "title": true, "detail": true, "detailCollapsedText": true, "detailExpandedText": true, "color": true, "icon": true, "iconClassName": true, "timeClassName": true, "titleClassName": true, "detailClassName": true, "dotSize": true, "lineColor": true, "hideDot": true, "cardSchema": true }, "required": [ "time" ] }, "FormControlSchema": { "allOf": [ { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "control" }, "body": true }, "required": [ "type", "body" ], "description": "Control 表单项包裹 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/control" }, "FormBaseControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "$ref": "#/definitions/SchemaType" }, "remark": { "$ref": "#/definitions/SchemaRemark", "description": "显示一个小图标, 鼠标放上去的时候显示提示内容" }, "labelRemark": { "$ref": "#/definitions/SchemaRemark", "description": "显示一个小图标, 鼠标放上去的时候显示提示内容, 这个小图标跟 label 在一起" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControl", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": true }, "required": [ "type" ] }, "FormBaseControl": { "allOf": [ { "type": "object", "properties": { "size": { "type": "string", "enum": [ "xs", "sm", "md", "lg", "full" ], "description": "表单项大小" } } }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true }, { "$ref": "#/definitions/FormBaseControlWithoutSize", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true } }, "ArrayControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseComboControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-array" }, "scaffold": true, "noBorder": true, "deleteConfirmText": true, "deleteApi": true, "typeSwitchable": true, "conditions": true, "formClassName": true, "addButtonClassName": true, "addButtonText": true, "addable": true, "addattop": true, "items": true, "draggable": true, "draggableTip": true, "flat": true, "delimiter": true, "joinValues": true, "maxLength": true, "minLength": true, "multiLine": true, "multiple": true, "removable": true, "subFormMode": true, "subFormHorizontal": true, "canAccessSuperData": true, "tabsMode": true, "tabsStyle": true, "tabsLabelTpl": true, "lazyLoad": true, "perPage": true, "strictMode": true, "syncFields": true, "nullable": true, "messages": true, "updatePristineAfterStoreDataReInit": true, "testIdBuilder": true }, "required": [ "type" ], "description": "InputArray 数组输入框。 combo 的别名。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/array" }, "BaseComboControlSchema": { "allOf": [ { "type": "object", "properties": { "scaffold": { "description": "单组表单项初始值。默认为 `{}`", "default": {} }, "noBorder": { "type": "boolean", "description": "是否含有边框" }, "deleteConfirmText": { "type": "string", "description": "确认删除时的提示" }, "deleteApi": { "$ref": "#/definitions/SchemaApi", "description": "删除时调用的api" }, "typeSwitchable": { "type": "boolean", "description": "是否可切换条件,配合`conditions`使用" }, "conditions": { "type": "array", "items": { "$ref": "#/definitions/ComboCondition" }, "description": "符合某类条件后才渲染的schema" }, "formClassName": { "$ref": "#/definitions/SchemaClassName", "description": "内部单组表单项的类名" }, "addButtonClassName": { "$ref": "#/definitions/SchemaClassName", "description": "新增按钮CSS类名" }, "addButtonText": { "type": "string", "description": "新增按钮文字", "default": "新增" }, "addable": { "type": "boolean", "description": "是否可新增" }, "addattop": { "type": "boolean", "description": "Add at top" }, "items": { "type": "array", "items": { "$ref": "#/definitions/ComboSubControl" }, "description": "数组输入框的子项" }, "draggable": { "type": "boolean", "description": "是否可拖拽排序" }, "draggableTip": { "type": "string", "description": "可拖拽排序的提示信息。", "default": "可拖拽排序" }, "flat": { "type": "boolean", "description": "是否将结果扁平化(去掉name),只有当controls的length为1且multiple为true的时候才有效" }, "delimiter": { "type": "string", "description": "当扁平化开启并且joinValues为true时,用什么分隔符", "deprecated": true }, "joinValues": { "type": "boolean", "description": "当扁平化开启的时候,是否用分隔符的形式发送给后端,否则采用array的方式", "deprecated": true }, "maxLength": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "限制最大个数" }, "minLength": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "限制最小个数" }, "multiLine": { "type": "boolean", "description": "是否多行模式,默认一行展示完" }, "multiple": { "type": "boolean", "description": "是否可多选" }, "removable": { "type": "boolean", "description": "是否可删除" }, "subFormMode": { "type": "string", "enum": [ "normal", "horizontal", "inline" ], "description": "子表单的模式。" }, "subFormHorizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" }, "placeholder": { "type": "string", "description": "没有成员时显示。", "default": "empty" }, "canAccessSuperData": { "type": "boolean", "description": "是否可以访问父级数据,正常 combo 已经关联到数组成员,是不能访问父级数据的。" }, "tabsMode": { "type": "boolean", "description": "采用 Tabs 展示方式?" }, "tabsStyle": { "type": "string", "enum": [ "", "line", "card", "radio" ], "description": "Tabs 的展示模式。" }, "tabsLabelTpl": { "$ref": "#/definitions/SchemaTpl", "description": "选项卡标题的生成模板。" }, "lazyLoad": { "type": "boolean", "description": "数据比较多,比较卡时,可以试试开启。" }, "perPage": { "type": "number", "description": "分页个数,默认不分页" }, "strictMode": { "type": "boolean", "description": "严格模式,为了性能默认不开的。" }, "syncFields": { "type": "array", "items": { "type": "string" }, "description": "配置同步字段。只有 `strictMode` 为 `false` 时有效。 如果 Combo 层级比较深,底层的获取外层的数据可能不同步。 但是给 combo 配置这个属性就能同步下来。输入格式:`[\"os\"]`" }, "nullable": { "type": "boolean", "description": "允许为空,如果子表单项里面配置验证器,且又是单条模式。可以允许用户选择清空(不填)。" }, "messages": { "type": "object", "properties": { "validateFailed": { "type": "string", "description": "验证错误提示" }, "minLengthValidateFailed": { "type": "string", "description": "最小值验证错误提示" }, "maxLengthValidateFailed": { "type": "string", "description": "最大值验证错误提示" } }, "additionalProperties": false, "description": "提示信息" }, "updatePristineAfterStoreDataReInit": { "type": "boolean" }, "testIdBuilder": { "$ref": "#/definitions/TestIdBuilder" } } }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": true, "scaffold": true, "noBorder": true, "deleteConfirmText": true, "deleteApi": true, "typeSwitchable": true, "conditions": true, "formClassName": true, "addButtonClassName": true, "addButtonText": true, "addable": true, "addattop": true, "items": true, "draggable": true, "draggableTip": true, "flat": true, "delimiter": true, "joinValues": true, "maxLength": true, "minLength": true, "multiLine": true, "multiple": true, "removable": true, "subFormMode": true, "subFormHorizontal": true, "canAccessSuperData": true, "tabsMode": true, "tabsStyle": true, "tabsLabelTpl": true, "lazyLoad": true, "perPage": true, "strictMode": true, "syncFields": true, "nullable": true, "messages": true, "updatePristineAfterStoreDataReInit": true, "testIdBuilder": true }, "description": "Combo 组合输入框类型 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/combo" }, "ComboCondition": { "type": "object", "properties": { "test": { "type": "string" }, "items": { "type": "array", "items": { "$ref": "#/definitions/ComboSubControl" } }, "label": { "type": "string" }, "scaffold": {}, "mode": { "type": "string" } }, "required": [ "test", "items", "label" ], "additionalProperties": false }, "ComboSubControl": { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "type": "object", "properties": { "unique": { "type": "boolean", "description": "是否唯一, 只有在 combo 里面才有用" }, "columnClassName": { "$ref": "#/definitions/SchemaClassName", "description": "列类名,可以用来修改这类宽度。" }, "testid": { "type": "string" } }, "additionalProperties": true } ] }, "ButtonGroupControlSchema": { "allOf": [ { "$ref": "#/definitions/FormOptionsControlSelf", "additionalProperties": true }, { "$ref": "#/definitions/FormBaseControlWithoutSize", "additionalProperties": true }, { "$ref": "#/definitions/BaseButtonGroupSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "button-group-select" }, "testid": true, "btnClassName": true, "btnActiveClassName": true, "buttons": true, "btnLevel": true, "btnActiveLevel": true, "vertical": true, "tiled": true, "size": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true }, "required": [ "type" ], "description": "按钮组控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/button-group" }, "FormOptionsControlSelf": { "type": "object", "properties": { "options": { "anyOf": [ { "type": "array", "items": { "$ref": "#/definitions/Option" } }, { "type": "array", "items": { "type": "string" } }, { "$ref": "#/definitions/PlainObject" } ], "description": "选项集合" }, "source": { "$ref": "#/definitions/BaseApi", "description": "可用来通过 API 拉取 options。" }, "selectFirst": { "type": "boolean", "description": "默认选择选项第一个值。" }, "initFetchOn": { "type": "string", "description": "用表达式来配置 source 接口初始要不要拉取", "deprecated": "建议用 source 接口的 sendOn" }, "initFetch": { "type": "boolean", "description": "配置 source 接口初始拉不拉取。", "deprecated": "建议用 source 接口的 sendOn" }, "multiple": { "type": "boolean", "description": "是否为多选模式" }, "checkAll": { "type": "boolean", "description": "是否默认全选" }, "joinValues": { "type": "boolean", "description": "单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。 多选模式:选中的多个选项的 `value` 会通过 `delimiter` 连接起来,否则直接将以数组的形式提交值。" }, "delimiter": { "type": "string", "description": "分割符" }, "valuesNoWrap": { "type": "boolean", "description": "多选模式,值太多时是否避免折行" }, "extractValue": { "type": "boolean", "description": "开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。" }, "clearable": { "type": "boolean", "description": "是否可清除。" }, "resetValue": { "type": "string", "description": "点清除按钮时,将表单项设置成当前配置的值。", "default": "" }, "deferField": { "type": "string", "description": "懒加载字段" }, "deferApi": { "$ref": "#/definitions/BaseApi", "description": "延时加载的 API,当选项中有 defer: true 的选项时,点开会通过此接口扩充。" }, "addApi": { "$ref": "#/definitions/BaseApi", "description": "添加时调用的接口" }, "addControls": { "type": "array", "items": { "$ref": "#/definitions/PlainObject" }, "description": "新增时的表单项。" }, "addDialog": { "$ref": "#/definitions/PlainObject", "description": "控制新增弹框设置项" }, "creatable": { "type": "boolean", "description": "是否可以新增" }, "createBtnLabel": { "type": "string", "description": "新增文字" }, "editable": { "type": "boolean", "description": "是否可以编辑" }, "editApi": { "$ref": "#/definitions/BaseApi", "description": "编辑时调用的 API" }, "editControls": { "type": "array", "items": { "$ref": "#/definitions/PlainObject" }, "description": "选项修改的表单项" }, "editDialog": { "$ref": "#/definitions/PlainObject", "description": "控制编辑弹框设置项" }, "removable": { "type": "boolean", "description": "是否可删除" }, "deleteApi": { "$ref": "#/definitions/BaseApi", "description": "选项删除 API" }, "deleteConfirmText": { "type": "string", "description": "选项删除提示文字。" }, "clearValueOnSourceChange": { "type": "boolean", "description": "source从数据域取值时,数据域值变化后是否自动清空" } }, "additionalProperties": false }, "Option": { "type": "object", "properties": { "label": { "type": "string", "description": "用来显示的文字" }, "scopeLabel": { "type": "string", "description": "可以用来给 Option 标记个范围,让数据展示更清晰。\n\n这个只有在数值展示的时候显示。" }, "value": { "description": "请保证数值唯一,多个选项值一致会认为是同一个选项。" }, "disabled": { "type": "boolean", "description": "是否禁用" }, "disabledTip": { "type": "string", "description": "禁用提示" }, "children": { "$ref": "#/definitions/Options", "description": "支持嵌套" }, "visible": { "type": "boolean", "description": "是否可见" }, "hidden": { "type": "boolean", "description": "最好不要用!因为有 visible 就够了。", "deprecated": "用 visible" }, "description": { "type": "string", "description": "描述,部分控件支持" }, "defer": { "type": "boolean", "description": "标记后数据延时加载" }, "deferApi": { "$ref": "#/definitions/BaseApi", "description": "如果设置了,优先级更高,不设置走 source 接口加载。" }, "loading": { "type": "boolean", "description": "标记正在加载。只有 defer 为 true 时有意义。内部字段不可以外部设置" }, "loaded": { "type": "boolean", "description": "只有设置了 defer 才有意义,内部字段不可以外部设置" } } }, "Options": { "type": "array", "items": { "$ref": "#/definitions/Option" } }, "ChainedSelectControlSchema": { "allOf": [ { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "chained-select" } }, "required": [ "type" ], "description": "链式下拉框 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/chain-select" }, "FormOptionsSchema": { "allOf": [ { "type": "object" }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true }, { "$ref": "#/definitions/FormOptionsControlSelf", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": true } }, "CheckboxControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "checkbox", "description": "指定为多行文本输入框" }, "trueValue": { "type": [ "boolean", "string", "number" ], "description": "勾选值" }, "falseValue": { "type": [ "boolean", "string", "number" ], "description": "未勾选值" }, "option": { "type": "string", "description": "选项说明" }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "partial": { "type": "boolean" }, "optionType": { "type": "string", "enum": [ "default", "button" ] }, "checked": { "type": "boolean" }, "testIdBuilder": { "$ref": "#/definitions/TestIdBuilder" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "checkbox" }, "trueValue": true, "falseValue": true, "option": true, "badge": true, "partial": true, "optionType": true, "checked": true, "testIdBuilder": true }, "required": [ "type" ], "description": "Checkbox 勾选框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/checkbox" }, "CheckboxesControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "checkboxes", "description": "指定为 Checkboxes 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/checkboxes" }, "checkAll": { "type": "boolean", "description": "是否开启全选功能" }, "defaultCheckAll": { "type": "boolean", "description": "是否默认全选" }, "checkAllText": { "type": "string", "description": "全选/不选文案" }, "columnsCount": { "anyOf": [ { "type": "number" }, { "type": "array", "items": { "type": "number" } } ], "description": "每行显示多少个" }, "menuTpl": { "type": "string", "description": "自定义选项展示" }, "testIdBuilder": { "$ref": "#/definitions/TestIdBuilder" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "checkboxes" }, "defaultCheckAll": true, "checkAllText": true, "columnsCount": true, "menuTpl": true, "testIdBuilder": true }, "required": [ "type" ], "description": "复选框 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/checkboxes" }, "InputCityControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-city", "description": "指定为城市选择框。" }, "extractValue": { "type": "boolean", "description": "开启后只会存城市的 code 信息" }, "joinValues": { "type": "boolean", "description": "是否将各个信息拼接成字符串。" }, "delimiter": { "type": "string", "description": "拼接的符号是啥?" }, "allowCity": { "type": "boolean", "description": "允许选择城市?" }, "allowDistrict": { "type": "boolean", "description": "允许选择地区?" }, "allowStreet": { "type": "boolean", "description": "允许选择街道?" }, "searchable": { "type": "boolean", "description": "是否显示搜索框" }, "itemClassName": { "type": "string", "description": "下拉框className" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-city" }, "extractValue": true, "joinValues": true, "delimiter": true, "allowCity": true, "allowDistrict": true, "allowStreet": true, "searchable": true, "itemClassName": true }, "required": [ "type" ], "description": "City 城市选择框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/city" }, "InputColorControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-color", "description": "指定为颜色选择框" }, "clearable": { "type": "boolean", "description": "是否显示清除按钮" }, "format": { "type": "string", "enum": [ "hex", "hexa", "rgb", "rgba", "hsl" ], "description": "颜色格式" }, "closeOnSelect": { "type": "boolean", "description": "选中颜色后是否关闭弹出层。" }, "presetColors": { "type": "array", "items": { "$ref": "#/definitions/PresetColor" }, "description": "预设颜色,用户可以直接从预设中选。" }, "allowCustomColor": { "type": "boolean", "description": "是否允许用户输入颜色。" }, "popOverContainerSelector": { "type": "string", "description": "弹窗容器选择器" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-color" }, "clearable": true, "format": true, "closeOnSelect": true, "presetColors": true, "allowCustomColor": true, "popOverContainerSelector": true }, "required": [ "type" ], "description": "Color 颜色选择框 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/color" }, "PresetColor": { "anyOf": [ { "type": "object", "properties": { "color": { "type": "string" }, "title": { "type": "string" } }, "required": [ "color", "title" ], "additionalProperties": false }, { "type": "string" } ] }, "ComboControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseComboControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "combo" }, "scaffold": true, "noBorder": true, "deleteConfirmText": true, "deleteApi": true, "typeSwitchable": true, "conditions": true, "formClassName": true, "addButtonClassName": true, "addButtonText": true, "addable": true, "addattop": true, "items": true, "draggable": true, "draggableTip": true, "flat": true, "delimiter": true, "joinValues": true, "maxLength": true, "minLength": true, "multiLine": true, "multiple": true, "removable": true, "subFormMode": true, "subFormHorizontal": true, "canAccessSuperData": true, "tabsMode": true, "tabsStyle": true, "tabsLabelTpl": true, "lazyLoad": true, "perPage": true, "strictMode": true, "syncFields": true, "nullable": true, "messages": true, "updatePristineAfterStoreDataReInit": true, "testIdBuilder": true }, "required": [ "type" ] }, "ConditionBuilderControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "condition-builder", "description": "指定为" }, "embed": { "type": "boolean", "description": "内嵌模式,默认为 true" }, "pickerIcon": { "$ref": "#/definitions/IconSchema", "description": "非内嵌模式时 弹窗触发icon" }, "funcs": { "$ref": "#/definitions/ConditionBuilderFuncs", "description": "函数集合" }, "fields": { "$ref": "#/definitions/ConditionBuilderFields", "description": "字段集合" }, "config": { "$ref": "#/definitions/ConditionBuilderConfig", "description": "其他配置" }, "source": { "anyOf": [ { "$ref": "#/definitions/SchemaApi" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "通过远程拉取配置项" }, "builderMode": { "type": "string", "enum": [ "simple", "full" ], "description": "展现模式" }, "showANDOR": { "type": "boolean", "description": "是否显示并或切换键按钮,只在简单模式下有用" }, "draggable": { "type": "boolean", "description": "是否可拖拽,默认为 true" }, "addBtnVisibleOn": { "type": "string" }, "addGroupBtnVisibleOn": { "type": "string", "description": "表达式:控制按钮“添加条件组”的显示" }, "formula": { "$ref": "#/definitions/BaseInputFormulaControlSchema", "description": "将字段输入控件变成公式编辑器。" }, "formulaForIf": { "description": "if 里面公式编辑器配置" } }, "required": [ "type", "fields" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "condition-builder" }, "embed": true, "pickerIcon": true, "funcs": true, "fields": true, "config": true, "source": true, "builderMode": true, "showANDOR": true, "draggable": true, "addBtnVisibleOn": true, "addGroupBtnVisibleOn": true, "formula": true, "formulaForIf": true }, "required": [ "type", "fields" ], "description": "条件组合控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/condition-builder" }, "ConditionBuilderFuncs": { "type": "array", "items": { "anyOf": [ { "$ref": "#/definitions/ConditionFieldFunc" }, { "type": "object", "properties": { "label": { "type": "string" }, "children": { "type": "array", "items": { "$ref": "#/definitions/ConditionFieldFunc" } } }, "required": [ "label", "children" ], "additionalProperties": false } ] } }, "ConditionFieldFunc": { "type": "object", "properties": { "type": { "type": "string" }, "returnType": { "$ref": "#/definitions/FieldTypes" }, "args": { "type": "array", "items": { "$ref": "#/definitions/ConditionBuilderFuncArg" } }, "label": { "type": "string" } }, "required": [ "type", "returnType", "args", "label" ], "additionalProperties": false }, "FieldTypes": { "type": "string", "enum": [ "text", "number", "boolean", "date", "time", "datetime", "select", "custom" ] }, "ConditionBuilderFuncArg": { "allOf": [ { "type": "object", "properties": { "isOptional": { "type": "boolean" } } }, { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": true, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "isOptional": true } }, "ConditionBuilderFields": { "type": "array", "items": { "$ref": "#/definitions/ConditionBuilderField" } }, "ConditionBuilderField": { "anyOf": [ { "$ref": "#/definitions/FieldSimple" }, { "$ref": "#/definitions/FieldGroup" }, { "type": "object", "properties": { "type": { "type": "string", "const": "group" }, "label": { "type": "string" }, "name": { "type": "string" }, "children": { "type": "array", "items": { "$ref": "#/definitions/FieldSimple" } } }, "required": [ "type", "label", "name", "children" ], "additionalProperties": false } ] }, "FieldSimple": { "anyOf": [ { "allOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string", "const": "text" }, "minLength": { "type": "number" }, "maxLength": { "type": "number" } }, "required": [ "name", "type" ] }, { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "text" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true, "minLength": true, "maxLength": true }, "required": [ "name", "type" ] }, { "allOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string", "const": "number" }, "maximum": { "type": "number" }, "minimum": { "type": "number" }, "step": { "type": "number" }, "precision": { "type": "number" } }, "required": [ "name", "type" ] }, { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "number" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true, "maximum": true, "minimum": true, "step": true, "precision": true }, "required": [ "name", "type" ] }, { "allOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string", "const": "date" }, "format": { "type": "string" }, "inputFormat": { "type": "string" }, "minDate": {}, "maxDate": {} }, "required": [ "name", "type" ] }, { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "date" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true, "format": true, "inputFormat": true, "minDate": true, "maxDate": true }, "required": [ "name", "type" ] }, { "allOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string", "const": "time" }, "minTime": {}, "maxTime": {}, "format": { "type": "string" }, "inputFormat": { "type": "string" } }, "required": [ "name", "type" ] }, { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "time" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true, "minTime": true, "maxTime": true, "format": true, "inputFormat": true }, "required": [ "name", "type" ] }, { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "datetime" }, "name": { "type": "string" }, "format": { "type": "string" }, "inputFormat": { "type": "string" }, "timeFormat": { "type": "string" } }, "required": [ "type", "name" ] }, { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "datetime" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true, "format": true, "inputFormat": true, "timeFormat": true }, "required": [ "type", "name" ] }, { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "select" }, "name": { "type": "string" }, "multiple": { "type": "boolean" }, "options": { "type": "array", "items": {} }, "source": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseApiObject" } ] }, "searchable": { "type": "boolean" }, "maxTagCount": { "type": "number" }, "overflowTagPopover": {}, "autoComplete": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/BaseApiObject" } ], "description": "自动完成 API,当输入部分文字的时候,会将这些文字通过 ${term} 可以取到,发送给接口。 接口可以返回匹配到的选项,帮助用户输入。" } }, "required": [ "type", "name" ] }, { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "select" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true, "multiple": true, "options": true, "source": true, "searchable": true, "maxTagCount": true, "overflowTagPopover": true, "autoComplete": true }, "required": [ "type", "name" ] }, { "allOf": [ { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "boolean" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true }, "required": [ "type", "name" ] }, { "$ref": "#/definitions/CustomField" } ] }, "CustomField": { "allOf": [ { "type": "object", "properties": { "type": { "$ref": "#/definitions/FieldTypes" }, "label": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "operators": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "lable": { "type": "string" }, "value": { "type": "string" }, "values": { "type": "array", "items": {} } }, "required": [ "lable", "value" ], "additionalProperties": false } ] } }, "funcs": { "type": "array", "items": { "type": "string" } }, "defaultValue": {}, "placeholder": { "type": "string" }, "disabled": { "type": "boolean" } }, "required": [ "type", "label" ] } ], "additionalProperties": false, "properties": { "type": { "type": "string", "const": "custom" }, "label": true, "valueTypes": true, "operators": true, "funcs": true, "defaultValue": true, "placeholder": true, "disabled": true, "name": true, "value": true }, "required": [ "type", "name", "value" ] }, "FieldGroup": { "type": "object", "properties": { "label": { "type": "string" }, "children": { "type": "array", "items": { "$ref": "#/definitions/FieldSimple" } } }, "required": [ "label", "children" ], "additionalProperties": false }, "ConditionBuilderConfig": { "type": "object", "properties": { "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } }, "fields": { "$ref": "#/definitions/ConditionBuilderFields" }, "funcs": { "$ref": "#/definitions/ConditionBuilderFuncs" }, "maxLevel": { "type": "number" }, "types": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ConditionBuilderType" } } }, "required": [ "types" ], "additionalProperties": false }, "ConditionBuilderType": { "type": "object", "properties": { "defaultOp": { "$ref": "#/definitions/OperatorType" }, "operators": { "type": "array", "items": { "$ref": "#/definitions/OperatorType" } }, "placeholder": { "type": "string" }, "valueTypes": { "type": "array", "items": { "type": "string", "enum": [ "value", "field", "func" ] } } }, "required": [ "operators" ], "additionalProperties": false }, "BaseInputFormulaControlSchema": { "allOf": [ { "type": "object", "properties": { "evalMode": { "type": "boolean", "description": "evalMode 即直接就是表达式,否则 需要 ${这里面才是表达式} 默认为 true" }, "mixedMode": { "type": "boolean", "description": "混合模式,意味着这个输入框既可以输入不同文本 也可以输入公式。 当输入公式时,值格式为 ${公式内容} 其他内容当字符串。" }, "variables": { "type": "array", "items": { "$ref": "#/definitions/VariableItem" }, "description": "用于提示的变量集合,默认为空" }, "variableMode": { "type": "string", "enum": [ "tabs", "tree" ], "description": "变量展现模式,可选值:'tabs' | 'tree'" }, "functions": { "type": "array", "items": { "$ref": "#/definitions/FuncGroup" }, "description": "函数集合,默认不需要传,即 amis-formula 里面那个函数 如果有扩充,则需要传。" }, "title": { "type": "string", "description": "编辑器标题" }, "header": { "type": "string", "description": "顶部标题,默认为表达式" }, "inputMode": { "type": "string", "enum": [ "button", "input-button", "input-group" ], "description": "控件模式" }, "allowInput": { "type": "boolean", "description": "外层input是否允许输入,否需要点击fx在弹窗中输入" }, "icon": { "$ref": "#/definitions/SchemaIcon", "description": "按钮图标" }, "btnLabel": { "type": "string", "description": "按钮Label,inputMode为button时生效" }, "level": { "type": "string", "enum": [ "info", "success", "warning", "danger", "link", "primary", "dark", "light" ], "description": "按钮样式" }, "btnSize": { "type": "string", "enum": [ "xs", "sm", "md", "lg" ], "description": "按钮大小" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "placeholder": { "type": "string", "description": "输入框占位符" }, "variableClassName": { "type": "string", "description": "变量面板CSS样式类名" }, "functionClassName": { "type": "string", "description": "函数面板CSS样式类名" }, "selfVariableName": { "type": "string", "description": "当前输入项字段 name: 用于避免循环绑定自身导致无限渲染" }, "inputSettings": { "$ref": "#/definitions/FormulaPickerInputSettings", "description": "输入框的类型" } }, "required": [ "variables", "functions", "header" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": true, "evalMode": true, "mixedMode": true, "variables": true, "variableMode": true, "functions": true, "title": true, "header": true, "inputMode": true, "allowInput": true, "icon": true, "btnLabel": true, "level": true, "btnSize": true, "borderMode": true, "variableClassName": true, "functionClassName": true, "selfVariableName": true, "inputSettings": true }, "required": [ "variables", "functions", "header" ], "description": "InputFormula 公式编辑器 文档:https://baidu.gitee.io/amis/zh-CN/components/form/input-formula" }, "VariableItem": { "type": "object", "properties": { "label": { "type": "string" }, "value": { "type": "string" }, "path": { "type": "string" }, "children": { "type": "array", "items": { "$ref": "#/definitions/VariableItem" } }, "type": { "type": "string" }, "tag": { "type": "string" }, "selectMode": { "type": "string", "enum": [ "tree", "tabs" ] }, "isMember": { "type": "boolean" } }, "required": [ "label" ], "additionalProperties": false }, "FuncGroup": { "type": "object", "properties": { "groupName": { "type": "string" }, "items": { "type": "array", "items": { "$ref": "#/definitions/FuncItem" } } }, "required": [ "groupName", "items" ], "additionalProperties": false }, "FuncItem": { "type": "object", "properties": { "name": { "type": "string" }, "example": { "type": "string" }, "description": { "type": "string" } }, "required": [ "name" ] }, "FormulaPickerInputSettings": { "type": "object", "properties": { "type": { "$ref": "#/definitions/FormulaPickerInputSettingType" } }, "required": [ "type" ] }, "FormulaPickerInputSettingType": { "type": "string", "enum": [ "text", "number", "boolean", "date", "time", "datetime", "select", "custom" ] }, "DateControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-date", "description": "指定为日期选择控件" }, "format": { "type": "string", "description": "日期存储格式", "default": "X" }, "inputFormat": { "type": "string", "description": "日期展示格式", "default": "YYYY-MM-DD" }, "valueFormat": { "type": "string", "description": "替代format" }, "displayFormat": { "type": "string", "description": "日期展示格式(新:替代inputFormat)" }, "closeOnSelect": { "type": "boolean", "description": "点选日期后是否关闭弹窗" }, "minDate": { "type": "string", "description": "限制最小日期" }, "maxDate": { "type": "string", "description": "限制最大日期" }, "popOverContainerSelector": { "type": "string", "description": "弹窗容器选择器" } }, "required": [ "type" ] }, { "$ref": "#/definitions/InputDateBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-date" }, "clearable": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "utc": true, "emebed": true, "borderMode": true, "shortcuts": true, "disabledDate": true, "inputForbid": true, "closeOnSelect": true, "minDate": true, "maxDate": true, "popOverContainerSelector": true }, "required": [ "type" ], "description": "Date日期选择控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/date" }, "InputDateBaseControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "input-date", "input-datetime", "input-time", "input-month", "input-quarter", "input-year" ], "description": "指定为日期选择控件" }, "clearable": { "type": "boolean", "description": "是否显示清除按钮" }, "format": { "type": "string", "description": "日期存储格式" }, "valueFormat": { "type": "string", "description": "替代format" }, "inputFormat": { "type": "string", "description": "日期展示格式" }, "displayFormat": { "type": "string", "description": "日期展示格式(新:替代inputFormat)" }, "utc": { "type": "boolean", "description": "设定是否存储 utc 时间。" }, "emebed": { "type": "boolean", "description": "是否为内联模式?" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "shortcuts": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "$ref": "#/definitions/ShortCuts" } } ], "description": "日期快捷键" }, "disabledDate": { "type": "string", "description": "字符串函数,用来决定是否禁用某个日期。\n\n(currentDate: moment.Moment, props: any) => boolean;" }, "inputForbid": { "type": "boolean" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "enum": [ "input-date", "input-datetime", "input-time", "input-month", "input-quarter", "input-year" ] }, "clearable": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "utc": true, "emebed": true, "borderMode": true, "shortcuts": true, "disabledDate": true, "inputForbid": true }, "required": [ "type" ] }, "ShortCuts": { "anyOf": [ { "type": "object", "properties": { "label": { "type": "string" }, "value": { "type": "string" } }, "required": [ "label", "value" ], "additionalProperties": false }, { "$ref": "#/definitions/ShortCutDate" }, { "$ref": "#/definitions/ShortCutDateRange" } ] }, "ShortCutDate": { "type": "object", "properties": { "label": { "type": "string" }, "date": { "type": "string", "description": "支持表达式" } }, "required": [ "label", "date" ], "additionalProperties": false }, "ShortCutDateRange": { "type": "object", "properties": { "label": { "type": "string" }, "startDate": { "type": "string" }, "endDate": { "type": "string" } }, "required": [ "label" ], "additionalProperties": false }, "DateTimeControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-datetime", "description": "指定为日期时间选择控件" }, "format": { "type": "string", "description": "日期存储格式", "default": "X" }, "inputFormat": { "type": "string", "description": "日期展示格式", "default": "YYYY-MM-DD HH:mm" }, "valueFormat": { "type": "string", "description": "替代format" }, "displayFormat": { "type": "string", "description": "日期展示格式(新:替代inputFormat)" }, "timeFormat": { "type": "string", "description": "时间的格式。", "default": "HH:mm" }, "minDate": { "type": "string", "description": "限制最小日期" }, "maxDate": { "type": "string", "description": "限制最大日期" }, "timeConstraints": { "description": "时间输入范围限制" }, "isEndDate": { "type": "boolean", "description": "是否为结束时间,如果是,那么会自动加上 23:59:59" } }, "required": [ "type" ] }, { "$ref": "#/definitions/InputDateBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-datetime" }, "clearable": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "utc": true, "emebed": true, "borderMode": true, "shortcuts": true, "disabledDate": true, "inputForbid": true, "timeFormat": true, "minDate": true, "maxDate": true, "timeConstraints": true, "isEndDate": true }, "required": [ "type" ], "description": "Datetime日期时间选择控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/datetime" }, "TimeControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-time", "description": "指定为日期时间选择控件" }, "format": { "type": "string", "description": "日期存储格式", "default": "X" }, "inputFormat": { "type": "string", "description": "日期展示格式", "default": "YYYY-MM-DD HH:mm" }, "valueFormat": { "type": "string", "description": "替代format" }, "displayFormat": { "type": "string", "description": "日期展示格式(新:替代inputFormat)" }, "timeFormat": { "type": "string", "description": "时间的格式。", "default": "HH:mm" }, "timeConstraints": { "description": "时间输入范围限制" } }, "required": [ "type" ] }, { "$ref": "#/definitions/InputDateBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-time" }, "clearable": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "utc": true, "emebed": true, "borderMode": true, "shortcuts": true, "disabledDate": true, "inputForbid": true, "timeFormat": true, "timeConstraints": true }, "required": [ "type" ], "description": "Time 时间选择控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/time" }, "MonthControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-month", "description": "指定为月份时间选择控件" }, "format": { "type": "string", "description": "月份存储格式", "default": "X" }, "inputFormat": { "type": "string", "description": "月份展示格式", "default": "YYYY-MM" }, "valueFormat": { "type": "string", "description": "替代format" }, "displayFormat": { "type": "string", "description": "日期展示格式(新:替代inputFormat)" } }, "required": [ "type" ] }, { "$ref": "#/definitions/InputDateBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-month" }, "clearable": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "utc": true, "emebed": true, "borderMode": true, "shortcuts": true, "disabledDate": true, "inputForbid": true }, "required": [ "type" ], "description": "Month 月份选择控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/Month" }, "QuarterControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-quarter", "description": "指定为月份时间选择控件" }, "format": { "type": "string", "description": "月份存储格式", "default": "X" }, "inputFormat": { "type": "string", "description": "月份展示格式", "default": "YYYY-MM" }, "valueFormat": { "type": "string", "description": "替代format" }, "displayFormat": { "type": "string", "description": "日期展示格式(新:替代inputFormat)" } }, "required": [ "type" ] }, { "$ref": "#/definitions/InputDateBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-quarter" }, "clearable": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "utc": true, "emebed": true, "borderMode": true, "shortcuts": true, "disabledDate": true, "inputForbid": true }, "required": [ "type" ], "description": "季度选择控件" }, "YearControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-year", "description": "指定为月份时间选择控件" }, "format": { "type": "string", "description": "月份存储格式", "default": "X" }, "inputFormat": { "type": "string", "description": "月份展示格式", "default": "YYYY-MM" }, "valueFormat": { "type": "string", "description": "替代format" }, "displayFormat": { "type": "string", "description": "日期展示格式(新:替代inputFormat)" } }, "required": [ "type" ] }, { "$ref": "#/definitions/InputDateBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-year" }, "clearable": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "utc": true, "emebed": true, "borderMode": true, "shortcuts": true, "disabledDate": true, "inputForbid": true }, "required": [ "type" ], "description": "年份选择控件" }, "DateRangeControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseDateRangeControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "enum": [ "input-date-range", "input-datetime-range", "input-time-range" ] }, "delimiter": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "joinValues": true, "maxDate": true, "minDate": true, "maxDuration": true, "minDuration": true, "borderMode": true, "embed": true, "ranges": true, "shortcuts": true, "startPlaceholder": true, "endPlaceholder": true, "animation": true, "transform": true, "popOverContainerSelector": true }, "required": [ "type" ], "description": "DateRange 日期范围控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/date-range" }, "BaseDateRangeControlSchema": { "allOf": [ { "type": "object", "properties": { "delimiter": { "type": "string", "description": "分割符, 因为有两个值,开始时间和结束时间,所以要有连接符。默认为英文逗号。" }, "format": { "type": "string", "description": "默认 `X` 即时间戳格式,用来提交的时间格式。更多格式类型请参考 moment." }, "valueFormat": { "type": "string", "description": "用来提交的时间格式。更多格式类型请参考 moment.(新:同format)" }, "inputFormat": { "type": "string", "description": "默认 `YYYY-MM-DD` 用来配置显示的时间格式。" }, "displayFormat": { "type": "string", "description": "用来配置显示的时间格式(新:同inputFormat)" }, "joinValues": { "type": "boolean", "description": "开启后将选中的选项 value 的值用连接符拼接起来,作为当前表单项的值。如: `value1,value2` 否则为 `[value1, value2]`" }, "maxDate": { "type": "string", "description": "最大日期限制,支持变量 $xxx 来取值,或者用相对值如:* `-2mins` 2分钟前\\n * `+2days` 2天后\\n* `-10week` 十周前\\n可用单位: `min`、`hour`、`day`、`week`、`month`、`year`。所有单位支持复数形式。" }, "minDate": { "type": "string", "description": "最小日期限制,支持变量 $xxx 来取值,或者用相对值如:* `-2mins` 2分钟前\\n * `+2days` 2天后\\n* `-10week` 十周前\\n可用单位: `min`、`hour`、`day`、`week`、`month`、`year`。所有单位支持复数形式。" }, "maxDuration": { "type": "string", "description": "最大跨度,比如 2days" }, "minDuration": { "type": "string", "description": "最小跨度,比如 2days" }, "value": { "description": "这里面 value 需要特殊说明一下,因为支持相对值。* `-2mins` 2分钟前\\n * `+2days` 2天后\\n* `-10week` 十周前\\n可用单位: `min`、`hour`、`day`、`week`、`month`、`year`。所有单位支持复数形式。" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "embed": { "type": "boolean", "description": "开启后变成非弹出模式,即内联模式。" }, "ranges": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "$ref": "#/definitions/ShortCuts" } } ], "description": "日期范围快捷键", "deprecated": "3.1.0及以后版本废弃,建议用 shortcuts 属性。" }, "shortcuts": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "$ref": "#/definitions/ShortCuts" } } ], "description": "日期范围快捷键" }, "startPlaceholder": { "type": "string", "description": "日期范围开始时间-占位符" }, "endPlaceholder": { "type": "string", "description": "日期范围结束时间-占位符" }, "animation": { "type": "boolean", "description": "是否启用游标动画,默认开启" }, "transform": { "type": "string", "description": "日期数据处理函数,用来处理选择日期之后的的值\n\n(value: moment.Moment, config: {type: 'start' | 'end'; originValue: moment.Moment, timeFormat: string}, props: any, data: any, moment: moment) => moment.Moment;" }, "popOverContainerSelector": { "type": "string", "description": "弹窗容器选择器" } } }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": true, "delimiter": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "joinValues": true, "maxDate": true, "minDate": true, "maxDuration": true, "minDuration": true, "borderMode": true, "embed": true, "ranges": true, "shortcuts": true, "startPlaceholder": true, "endPlaceholder": true, "animation": true, "transform": true, "popOverContainerSelector": true } }, "DiffControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "diff-editor", "description": "指定为 Diff 编辑器" }, "diffValue": { "$ref": "#/definitions/SchemaTokenizeableString", "description": "左侧面板的值, 支持取变量。" }, "language": { "type": "string", "description": "语言,参考 monaco-editor" }, "options": { "description": "编辑器配置" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "diff-editor" }, "diffValue": true, "language": true, "options": true }, "required": [ "type" ], "description": "Diff 编辑器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/diff" }, "EditorControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "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" ] }, "language": { "type": "string", "enum": [ "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", "shell", "sol", "sql", "swift", "typescript", "vb", "xml", "yaml" ], "description": "语言类型" }, "size": { "type": "string", "enum": [ "sm", "md", "lg", "xl", "xxl" ], "description": "编辑器大小" }, "allowFullscreen": { "type": "boolean", "description": "是否展示全屏模式开关" }, "editorDidMount": { "type": "string", "description": "获取编辑器底层实例" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true }, { "$ref": "#/definitions/FormBaseControlWithoutSize", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "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" ] }, "language": true, "size": true, "allowFullscreen": true, "editorDidMount": true }, "required": [ "type" ], "description": "Editor 代码编辑器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/editor" }, "FieldSetControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "fieldset", "fieldSet" ], "description": "指定为表单项集合" }, "titlePosition": { "type": "string", "enum": [ "top", "bottom" ], "description": "标题展示位置" }, "collapsable": { "type": "boolean", "description": "是否可折叠" }, "collapsed": { "type": "boolean", "description": "默认是否折叠" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "内容区域" }, "title": { "$ref": "#/definitions/SchemaTpl", "description": "标题" }, "collapseTitle": { "$ref": "#/definitions/SchemaTpl", "description": "收起的标题" }, "mountOnEnter": { "type": "boolean", "description": "点开时才加载内容" }, "unmountOnExit": { "type": "boolean", "description": "卡片隐藏就销毁内容。" }, "subFormMode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "subFormHorizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" } }, "required": [ "type", "titlePosition" ] }, { "$ref": "#/definitions/FormBaseControlWithoutSize", "additionalProperties": true }, { "$ref": "#/definitions/BaseSchemaWithoutType", "additionalProperties": true }, { "$ref": "#/definitions/BaseCollapseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "enum": [ "fieldset", "fieldSet" ] }, "testid": true, "key": true, "headerPosition": true, "header": true, "bodyClassName": true, "collapsable": true, "collapsed": true, "showArrow": true, "expandIcon": true, "headingClassName": true, "collapseHeader": true, "size": true, "mountOnEnter": true, "unmountOnExit": true, "divideLine": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "titlePosition": true, "body": true, "title": true, "collapseTitle": true, "subFormMode": true, "subFormHorizontal": true }, "required": [ "type", "titlePosition" ], "description": "FieldSet 表单项集合 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/fieldset" }, "FileControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-file", "description": "指定为文件上传" }, "btnLabel": { "type": "string", "description": "上传文件按钮说明", "default": "请选择文件" }, "accept": { "type": "string", "description": "默认只支持纯文本,要支持其他类型,请配置此属性。建议直接填写文件后缀 如:.txt,.csv\n\n多个类型用逗号隔开。", "default": "text/plain" }, "capture": { "type": "string", "description": "控制 input 标签的 capture 属性,用于移动端拍照或录像。" }, "asBase64": { "type": "boolean", "description": "如果上传的文件比较小可以设置此选项来简单的把文件 base64 的值给 form 一起提交,目前不支持多选。" }, "asBlob": { "type": "boolean", "description": "如果不希望 File 组件上传,可以配置 `asBlob` 或者 `asBase64`,采用这种方式后,组件不再自己上传了,而是直接把文件数据作为表单项的值,文件内容会在 Form 表单提交的接口里面一起带上。" }, "autoUpload": { "type": "boolean", "description": "是否自动开始上传" }, "chunkApi": { "$ref": "#/definitions/SchemaApi", "description": "默认 `/api/upload/chunk` 想自己存储时才需要关注。" }, "chunkSize": { "type": "number", "description": "分块大小,默认为 5M.", "default": 5242880 }, "concurrency": { "type": "number", "description": "分块上传的并发数" }, "delimiter": { "type": "string", "description": "分割符" }, "downloadUrl": { "$ref": "#/definitions/SchemaApi", "description": "默认显示文件路径的时候会支持直接下载, 可以支持加前缀如:`http://xx.dom/filename=` , 如果不希望这样,可以把当前配置项设置为 `false`。\n\n1.1.6 版本开始将支持变量 ${xxx} 来自己拼凑个下载地址,并且支持配置成 post." }, "templateUrl": { "$ref": "#/definitions/SchemaApi", "description": "模板下载地址" }, "fileField": { "type": "string", "description": "默认 `file`, 如果你不想自己存储,则可以忽略此属性。", "default": "file" }, "finishChunkApi": { "$ref": "#/definitions/SchemaApi", "description": "默认 `/api/upload/finishChunkApi` 想自己存储时才需要关注。", "default": "/api/upload/finishChunkApi" }, "hideUploadButton": { "type": "boolean", "description": "是否隐藏上传按钮" }, "maxLength": { "type": "number", "description": "最多的个数" }, "maxSize": { "type": "number", "description": "默认没有限制,当设置后,文件大小大于此值将不允许上传。" }, "receiver": { "$ref": "#/definitions/SchemaApi", "description": "默认 `/api/upload/file` 如果想自己存储,请设置此选项。", "default": "/api/upload/file" }, "startChunkApi": { "type": "string", "description": "默认 `/api/upload/startChunk` 想自己存储时才需要关注。", "default": "/api/upload/startChunk" }, "useChunk": { "anyOf": [ { "type": "string", "const": "auto" }, { "type": "boolean" } ], "description": "默认为 'auto' amis 所在服务器,限制了文件上传大小不得超出10M,所以 amis 在用户选择大文件的时候,自动会改成分块上传模式。" }, "btnClassName": { "$ref": "#/definitions/SchemaClassName", "description": "按钮 CSS 类名" }, "btnUploadClassName": { "$ref": "#/definitions/SchemaClassName", "description": "上传按钮 CSS 类名" }, "multiple": { "type": "boolean", "description": "是否为多选" }, "joinValues": { "type": "boolean", "description": "1. 单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交, 否则,整个选项对象都会作为该表单项的值提交。 2. 多选模式:选中的多个选项的 `value` 会通过 `delimiter` 连接起来, 否则直接将以数组的形式提交值。" }, "extractValue": { "type": "boolean", "description": "开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。" }, "resetValue": { "description": "清除时设置的值" }, "autoFill": { "type": "object", "additionalProperties": { "$ref": "#/definitions/SchemaTokenizeableString" }, "description": "上传后把其他字段同步到表单内部。" }, "initAutoFill": { "type": "boolean", "description": "初始化时是否把其他字段同步到表单内部。" }, "valueField": { "type": "string", "description": "接口返回的数据中,哪个用来当做值" }, "nameField": { "type": "string", "description": "接口返回的数据中,哪个用来展示文件名" }, "urlField": { "type": "string", "description": "接口返回的数据中哪个用来作为下载地址。" }, "stateTextMap": { "type": "object", "properties": { "init": { "type": "string" }, "pending": { "type": "string" }, "uploading": { "type": "string" }, "error": { "type": "string" }, "uploaded": { "type": "string" }, "ready": { "type": "string" } }, "required": [ "init", "pending", "uploading", "error", "uploaded", "ready" ], "additionalProperties": false, "description": "按钮状态文案配置。" }, "documentation": { "type": "string", "description": "说明文档内容配置" }, "documentLink": { "type": "string", "description": "说明文档链接配置" }, "drag": { "type": "boolean", "description": "是否为拖拽上传" }, "invalidTypeMessage": { "type": "string", "description": "校验格式失败时显示的文字信息" }, "invalidSizeMessage": { "type": "string", "description": "校验文件大小失败时显示的文字信息" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-file" }, "btnLabel": true, "accept": true, "capture": true, "asBase64": true, "asBlob": true, "autoUpload": true, "chunkApi": true, "chunkSize": true, "concurrency": true, "delimiter": true, "downloadUrl": true, "templateUrl": true, "fileField": true, "finishChunkApi": true, "hideUploadButton": true, "maxLength": true, "maxSize": true, "receiver": true, "startChunkApi": true, "useChunk": true, "btnClassName": true, "btnUploadClassName": true, "multiple": true, "joinValues": true, "extractValue": true, "resetValue": true, "valueField": true, "nameField": true, "urlField": true, "stateTextMap": true, "documentation": true, "documentLink": true, "drag": true, "invalidTypeMessage": true, "invalidSizeMessage": true }, "required": [ "type" ], "description": "File 文件上传控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/file" }, "FormulaControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "formula", "description": "指定为公式功能控件。" }, "id": { "type": "string", "description": "当某个按钮的目标指定为此值后,会触发一次公式应用。这个机制可以在 autoSet 为 false 时用来手动触发" }, "condition": { "type": "string", "description": "触发公式的作用条件,如 data.xxx == \\\"a\\\" 或者 ${xx}" }, "autoSet": { "type": "boolean", "description": "是否自动应用" }, "formula": { "type": "string", "description": "公式" }, "initSet": { "type": "boolean", "description": "是否初始应用" }, "name": { "type": "string", "description": "字段名,公式结果将作用到此处指定的变量中去" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "formula" }, "condition": true, "autoSet": true, "formula": true, "initSet": true }, "required": [ "type" ], "description": "公式功能控件。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/formula" }, "GroupControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "group" }, "body": { "type": "array", "items": { "$ref": "#/definitions/GroupSubControl" }, "description": "FormItem 集合" }, "gap": { "type": "string", "enum": [ "xs", "sm", "normal" ], "description": "间隔" }, "direction": { "type": "string", "enum": [ "horizontal", "vertical" ], "description": "配置时垂直摆放还是左右摆放。" }, "subFormMode": { "type": "string", "enum": [ "normal", "inline", "horizontal" ], "description": "配置子表单项默认的展示方式。" }, "subFormHorizontal": { "$ref": "#/definitions/FormHorizontal", "description": "如果是水平排版,这个属性可以细化水平排版的左右宽度占比。" } }, "required": [ "type", "body" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "group" }, "body": true, "gap": true, "direction": true, "subFormMode": true, "subFormHorizontal": true }, "required": [ "type", "body" ], "description": "Group 表单集合渲染器,能让多个表单在一行显示 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/group" }, "GroupSubControl": { "allOf": [ { "$ref": "#/definitions/SchemaObjectLoose" }, { "type": "object", "properties": { "columnClassName": { "$ref": "#/definitions/SchemaClassName", "description": "列类名" }, "columnRatio": { "anyOf": [ { "type": "number" }, { "type": "string", "const": "auto" } ], "description": "宽度占用比率。在某些容器里面有用比如 group" }, "name": { "type": "string", "description": "列名称" } }, "additionalProperties": true } ] }, "HiddenControlSchema": { "allOf": [ { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "hidden" } }, "required": [ "type" ], "description": "Hidden 隐藏域。功能性组件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/hidden" }, "IconPickerControlSchema": { "allOf": [ { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "icon-picker" } }, "required": [ "type" ], "description": "图标选择器 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/icon-picker" }, "ImageControlSchema": { "allOf": [ { "type": "object", "properties": { "showErrorModal": { "type": "boolean", "description": "格式校验失败是否显示弹窗" }, "invalidTypeMessage": { "type": "string", "description": "校验格式失败时显示的文字信息" }, "invalidSizeMessage": { "type": "string", "description": "校验文件大小失败时显示的文字信息" }, "type": { "type": "string", "const": "input-image", "description": "指定为图片上传控件" }, "src": { "$ref": "#/definitions/SchemaUrlPath", "description": "默认展示图片的链接" }, "imageClassName": { "type": "string", "description": "默认展示图片的类名" }, "accept": { "type": "string", "description": "配置接收的图片类型\n\n建议直接填写文件后缀 如:.txt,.csv\n\n多个类型用逗号隔开。" }, "allowInput": { "type": "boolean", "description": "默认都是通过用户选择图片后上传返回图片地址,如果开启此选项,则可以允许用户图片地址。" }, "autoUpload": { "type": "boolean", "description": "是否自动开始上传" }, "uploadBtnText": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/TplSchema" } ], "description": "上传按钮文案" }, "btnClassName": { "$ref": "#/definitions/SchemaClassName", "description": "选择图片按钮的 CSS 类名" }, "btnUploadClassName": { "$ref": "#/definitions/SchemaClassName", "description": "上传按钮的 CSS 类名" }, "compress": { "type": "boolean", "deprecated": true }, "compressOptions": { "type": "object", "properties": { "maxHeight": { "type": "number" }, "maxWidth": { "type": "number" } }, "additionalProperties": false, "deprecated": true }, "crop": { "anyOf": [ { "type": "boolean" }, { "type": "object", "properties": { "aspectRatio": { "type": "number", "description": "默认 `1` 即 `1:1`\n\n留空将不限制" }, "guides": { "type": "boolean" }, "dragMode": { "type": "string" }, "viewMode": { "type": "number" }, "rotatable": { "type": "boolean" }, "scalable": { "type": "boolean" } }, "additionalProperties": false } ] }, "cropFormat": { "type": "string", "description": "裁剪后的图片类型" }, "cropQuality": { "type": "number", "description": "裁剪后的质量" }, "reCropable": { "type": "boolean", "description": "是否允许二次裁剪。" }, "hideUploadButton": { "type": "boolean", "description": "是否隐藏上传按钮" }, "limit": { "type": "object", "properties": { "aspectRatioLabel": { "type": "string", "description": "比率不对时的提示文字" }, "aspectRatio": { "type": "number", "description": "限制比率" }, "height": { "type": "number", "description": "限制图片高度" }, "width": { "type": "number", "description": "限制图片宽度" }, "maxHeight": { "type": "number", "description": "限制图片最大高度" }, "maxWidth": { "type": "number", "description": "限制图片最大宽度" }, "minHeight": { "type": "number", "description": "限制图片最小高度" }, "minWidth": { "type": "number", "description": "限制图片最小宽度" } }, "additionalProperties": false, "description": "限制图片大小,超出不让上传。" }, "maxLength": { "type": "number", "description": "最多的个数" }, "maxSize": { "type": "number", "description": "默认没有限制,当设置后,文件大小大于此值将不允许上传。" }, "receiver": { "$ref": "#/definitions/SchemaApi", "description": "默认 `/api/upload` 如果想自己存储,请设置此选项。" }, "showCompressOptions": { "type": "boolean", "description": "默认为 false, 开启后,允许用户输入压缩选项。", "deprecated": true }, "multiple": { "type": "boolean", "description": "是否为多选" }, "capture": { "type": "string", "description": "可配置移动端的拍照功能,比如配置 `camera` 移动端只能拍照,等" }, "joinValues": { "type": "boolean", "description": "单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。 多选模式:选中的多个选项的 `value` 会通过 `delimiter` 连接起来,否则直接将以数组的形式提交值。" }, "delimiter": { "type": "string", "description": "分割符" }, "extractValue": { "type": "boolean", "description": "开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。" }, "resetValue": { "description": "清除时设置的值" }, "thumbMode": { "type": "string", "enum": [ "w-full", "h-full", "contain", "cover" ], "description": "缩路图展示模式" }, "thumbRatio": { "type": "string", "enum": [ "1:1", "4:3", "16:9" ], "description": "缩路图展示比率。" }, "autoFill": { "type": "object", "additionalProperties": { "$ref": "#/definitions/SchemaTokenizeableString" }, "description": "上传后把其他字段同步到表单内部。" }, "initAutoFill": { "type": "boolean", "description": "初始化时是否把其他字段同步到表单内部。" }, "initCrop": { "type": "boolean", "description": "初始化时是否打开裁剪模式" }, "dropCrop": { "type": "boolean", "description": "图片上传完毕是否进入裁剪模式" }, "frameImage": { "$ref": "#/definitions/SchemaUrlPath", "description": "默认占位图图片地址" }, "fixedSize": { "type": "boolean", "description": "是否开启固定尺寸" }, "fixedSizeClassName": { "$ref": "#/definitions/SchemaClassName", "description": "固定尺寸的 CSS类名" }, "draggable": { "type": "boolean", "description": "是否可拖拽排序" }, "draggableTip": { "type": "string", "description": "可拖拽排序的提示信息。", "default": "可拖拽排序" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-image" }, "showErrorModal": true, "invalidTypeMessage": true, "invalidSizeMessage": true, "src": true, "imageClassName": true, "accept": true, "allowInput": true, "autoUpload": true, "uploadBtnText": true, "btnClassName": true, "btnUploadClassName": true, "compress": true, "compressOptions": true, "crop": true, "cropFormat": true, "cropQuality": true, "reCropable": true, "hideUploadButton": true, "limit": true, "maxLength": true, "maxSize": true, "receiver": true, "showCompressOptions": true, "multiple": true, "capture": true, "joinValues": true, "delimiter": true, "extractValue": true, "resetValue": true, "thumbMode": true, "thumbRatio": true, "initCrop": true, "dropCrop": true, "frameImage": true, "fixedSize": true, "fixedSizeClassName": true, "draggable": true, "draggableTip": true }, "required": [ "type" ], "description": "Image 图片上传控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/image" }, "InputGroupControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-group" }, "body": { "$ref": "#/definitions/SchemaCollection", "description": "FormItem 集合" }, "validationConfig": { "type": "object", "properties": { "errorMode": { "type": "string", "enum": [ "full", "partial" ], "description": "错误提示的展示模式, full为整体飘红, highlight为仅错误项飘红, 默认为full" }, "delimiter": { "type": "string", "description": "单个子元素多条校验信息的分隔符" } }, "additionalProperties": false, "description": "校验提示信息配置" } }, "required": [ "type", "body" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-group" }, "body": true, "validationConfig": true }, "required": [ "type", "body" ], "description": "InputGroup 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-group" }, "ListControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "list-select", "description": "指定为 ListSelect 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/list-select" }, "submitOnDBClick": { "type": "boolean", "description": "开启双击点选并提交。" }, "imageClassName": { "type": "string", "description": "图片div类名" }, "itemSchema": { "$ref": "#/definitions/SchemaCollection", "description": "可以自定义展示模板。" }, "activeItemSchema": { "$ref": "#/definitions/SchemaCollection", "description": "激活态自定义展示模板。" }, "listClassName": { "$ref": "#/definitions/SchemaClassName", "description": "支持配置 list div 的 css 类名。 比如:flex justify-between" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "list-select" }, "submitOnDBClick": true, "imageClassName": true, "itemSchema": true, "activeItemSchema": true, "listClassName": true }, "required": [ "type" ], "description": "List 复选框 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/list-select" }, "JSONSchemaEditorControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "json-schema-editor", "description": "指定为 JSON Schema Editor" }, "definitions": { "type": "object", "additionalProperties": { "type": "object", "properties": { "title": { "type": "string" }, "type": { "type": "string", "enum": [ "string", "number", "integer", "object", "array", "boolean", "null" ] } }, "required": [ "title", "type" ] }, "description": "可以理解为类型模板,方便快速定义复杂类型" }, "rootTypeMutable": { "type": "boolean", "description": "顶层是否允许修改类型" }, "showRootInfo": { "type": "boolean", "description": "顶层类型信息是否隐藏" }, "disabledTypes": { "type": "array", "items": { "type": "string" }, "description": "禁用类型,默认禁用了 null 类型" }, "enableAdvancedSetting": { "type": "boolean", "description": "开启详情配置" }, "advancedSettings": { "type": "object", "description": "自定义详情配置面板如:\n\n{ boolean: [ {type: \"input-text\", name: \"aa\", label: \"AA\" } ] }\n\n当配置布尔字段详情时,就会出现以上配置" }, "placeholder": { "$ref": "#/definitions/SchemaEditorItemPlaceholder", "description": "各属性输入控件的占位提示文本\n\n{ key: \"key placeholder\", title: \"title placeholder\", description: \"description placeholder\", default: \"default placeholder\" }" }, "mini": { "type": "boolean", "description": "是否为迷你模式,会隐藏一些不必要的元素" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "json-schema-editor" }, "definitions": true, "rootTypeMutable": true, "showRootInfo": true, "disabledTypes": true, "enableAdvancedSetting": true, "advancedSettings": true, "mini": true }, "required": [ "type" ], "description": "JSON Schema Editor 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/json-schema-editor" }, "SchemaEditorItemPlaceholder": { "type": "object", "properties": { "key": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "default": { "type": "string" }, "empty": { "type": "string" } }, "additionalProperties": false }, "InputSignatureSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-signature" }, "width": { "type": "number", "description": "组件宽度,默认占满父容器" }, "height": { "type": "number", "description": "组件高度,默认占满父容器" }, "color": { "type": "string", "description": "组件字段颜色", "default": "#000" }, "bgColor": { "type": "string", "description": "组件背景颜色", "default": "#efefef" }, "clearBtnLabel": { "type": "string", "description": "清空按钮名称", "default": "清空" }, "clearBtnIcon": { "type": "string", "description": "清空按钮图标", "default": "清空" }, "undoBtnLabel": { "type": "string", "description": "撤销按钮名称", "default": "撤销" }, "undoBtnIcon": { "type": "string", "description": "清空按钮图标", "default": "清空" }, "confirmBtnLabel": { "type": "string", "description": "确认按钮名称", "default": "确认" }, "confirmBtnIcon": { "type": "string", "description": "确认按钮图标", "default": "确认" }, "embed": { "type": "boolean", "description": "是否内嵌" }, "embedConfirmLabel": { "type": "string", "description": "弹窗确认按钮名称" }, "embedConfirmIcon": { "type": "string", "description": "弹窗确认按钮图标" }, "ebmedCancelLabel": { "type": "string", "description": "弹窗取消按钮名称" }, "ebmedCancelIcon": { "type": "string", "description": "弹窗取消按钮图标" }, "embedBtnIcon": { "type": "string", "description": "弹窗按钮图标" }, "embedBtnLabel": { "type": "string", "description": "弹窗按钮文案" }, "uploadApi": { "$ref": "#/definitions/SchemaApi", "description": "上传签名图片api, 仅在内嵌模式下生效" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-signature" }, "width": true, "height": true, "color": true, "bgColor": true, "clearBtnLabel": true, "clearBtnIcon": true, "undoBtnLabel": true, "undoBtnIcon": true, "confirmBtnLabel": true, "confirmBtnIcon": true, "embed": true, "embedConfirmLabel": true, "embedConfirmIcon": true, "ebmedCancelLabel": true, "ebmedCancelIcon": true, "embedBtnIcon": true, "embedBtnLabel": true, "uploadApi": true }, "required": [ "type" ] }, "LocationControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "location-picker" }, "vendor": { "type": "string", "enum": [ "baidu", "gaode", "tenxun" ], "description": "选择地图类型" }, "ak": { "type": "string", "description": "有的地图需要设置 ak 信息" }, "autoSelectCurrentLoc": { "type": "boolean", "description": "是否自动选中当前地理位置" }, "onlySelectCurrentLoc": { "type": "boolean", "description": "是否限制只能选中当前地理位置 备注:可用于充当定位组件,只允许选择当前位置" }, "getLocationPlaceholder": { "type": "string", "description": "开启只读模式后的占位提示,默认为“点击获取位置信息” 备注:区分下现有的placeholder(“请选择位置”)" }, "hideViewControl": { "type": "boolean", "description": "是否隐藏地图控制组件,默认为false" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "location-picker" }, "vendor": true, "ak": true, "autoSelectCurrentLoc": true, "onlySelectCurrentLoc": true, "getLocationPlaceholder": true, "hideViewControl": true }, "required": [ "type" ], "description": "Location 选点组件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/location" }, "UUIDControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "uuid" }, "length": { "type": "number", "description": "长度,默认 uuid 的长度是 36,如果不需要那么长,可以设置这个来缩短" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "uuid" }, "length": true }, "required": [ "type" ], "description": "UUID 功能性组件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/uuid" }, "MatrixControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "matrix-checkboxes" }, "multiple": { "type": "boolean", "description": "配置singleSelectMode时设置为false" }, "singleSelectMode": { "type": "boolean", "description": "设置单选模式,multiple为false时有效" }, "source": { "$ref": "#/definitions/SchemaApi", "description": "可用来通过 API 拉取 options。" }, "columns": { "type": "array", "items": { "type": "object", "properties": { "label": { "type": "string" } }, "required": [ "label" ] } }, "rows": { "type": "array", "items": { "type": "object", "properties": { "label": { "type": "string" } }, "required": [ "label" ] } }, "rowLabel": { "type": "string", "description": "行标题说明" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "matrix-checkboxes" }, "multiple": true, "singleSelectMode": true, "source": true, "columns": true, "rows": true, "rowLabel": true }, "required": [ "type" ], "description": "Matrix 选择控件。适合做权限勾选。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/matrix" }, "MonthRangeControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseDateRangeControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-month-range" }, "delimiter": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "joinValues": true, "maxDate": true, "minDate": true, "maxDuration": true, "minDuration": true, "borderMode": true, "embed": true, "ranges": true, "shortcuts": true, "startPlaceholder": true, "endPlaceholder": true, "animation": true, "transform": true, "popOverContainerSelector": true }, "required": [ "type" ], "description": "MonthRange 月范围控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/month-range" }, "QuarterRangeControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseDateRangeControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-quarter-range" }, "delimiter": true, "format": true, "valueFormat": true, "inputFormat": true, "displayFormat": true, "joinValues": true, "maxDate": true, "minDate": true, "maxDuration": true, "minDuration": true, "borderMode": true, "embed": true, "ranges": true, "shortcuts": true, "startPlaceholder": true, "endPlaceholder": true, "animation": true, "transform": true, "popOverContainerSelector": true }, "required": [ "type" ], "description": "QuarterRange 季度范围控件 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-quarter-range" }, "NestedSelectControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "nested-select", "description": "指定为 NestedSelect 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/nested-select" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "menuClassName": { "type": "string", "description": "弹框的 css 类" }, "cascade": { "type": "boolean", "description": "父子之间是否完全独立。" }, "withChildren": { "type": "boolean", "description": "选父级的时候是否把子节点的值也包含在内。" }, "onlyChildren": { "type": "boolean", "description": "选父级的时候,是否只把子节点的值包含在内" }, "onlyLeaf": { "type": "boolean", "description": "只允许选择叶子节点" }, "hideNodePathLabel": { "type": "boolean", "description": "是否隐藏选择框中已选中节点的祖先节点的文本信息" }, "maxTagCount": { "type": "number", "description": "标签的最大展示数量,超出数量后以收纳浮层的方式展示,仅在多选模式开启后生效" }, "overflowTagPopover": { "type": "object", "description": "收纳标签的Popover配置" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "nested-select" }, "borderMode": true, "menuClassName": true, "cascade": true, "withChildren": true, "onlyChildren": true, "onlyLeaf": true, "hideNodePathLabel": true, "maxTagCount": true, "overflowTagPopover": true }, "required": [ "type" ], "description": "Nested Select 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/nested-select" }, "NumberControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-number" }, "max": { "type": "number", "description": "最大值" }, "min": { "type": "number", "description": "最小值" }, "step": { "type": "number", "description": "步长" }, "precision": { "type": "number", "description": "精度" }, "showSteps": { "type": "boolean", "description": "是否显示上下点击按钮" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "prefix": { "type": "string", "description": "前缀" }, "suffix": { "type": "string", "description": "后缀" }, "unitOptions": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "$ref": "#/definitions/Option" } }, { "type": "array", "items": { "type": "string" } }, { "$ref": "#/definitions/PlainObject" } ], "description": "单位列表" }, "big": { "type": "boolean", "description": "是否是大数,如果是的话输入输出都将是字符串" }, "kilobitSeparator": { "type": "boolean", "description": "是否千分分隔" }, "readOnly": { "type": "boolean", "description": "只读" }, "keyboard": { "type": "boolean", "description": "是否启用键盘行为" }, "displayMode": { "type": "string", "enum": [ "base", "enhance" ], "description": "输入框为基础输入框还是加强输入框" }, "showAsPercent": { "type": "boolean", "description": "用来开启百分号的展示形式" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-number" }, "max": true, "min": true, "step": true, "precision": true, "showSteps": true, "borderMode": true, "prefix": true, "suffix": true, "unitOptions": true, "big": true, "kilobitSeparator": true, "keyboard": true, "displayMode": true, "showAsPercent": true }, "required": [ "type" ], "description": "数字输入框 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-number" }, "PickerControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "picker", "description": "指定为 Picker 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/picker" }, "labelTpl": { "$ref": "#/definitions/SchemaTpl", "description": "可用来生成选中的值的描述文字" }, "labelField": { "type": "string", "description": "建议用 labelTpl 选中一个字段名用来作为值的描述文字" }, "valueField": { "type": "string", "description": "选一个可以用来作为值的字段。" }, "pickerSchema": { "description": "弹窗选择框详情。" }, "modalMode": { "type": "string", "enum": [ "dialog", "drawer" ], "description": "弹窗模式,dialog 或者 drawer" }, "modalSize": { "type": "string", "enum": [ "xs", "sm", "md", "lg", "xl", "full" ], "description": "弹窗的尺寸,可选值为 'sm'、'md'、'lg'、'xl'" }, "modalTitle": { "type": "string", "description": "弹窗的标题,默认为情选择" }, "embed": { "type": "boolean", "description": "内嵌模式,也就是说不弹框了。" }, "overflowConfig": { "type": "object", "properties": { "maxTagCount": { "type": "number", "description": "标签的最大展示数量,超出数量后以收纳浮层的方式展示,仅在多选模式开启后生效" }, "displayPosition": { "type": "array", "items": { "type": "string", "enum": [ "select", "crud" ] }, "description": "开启最大标签展示数量后,收纳标签生效的位置,未开启内嵌模式默认为选择器, 开启后默认为选择器 + 模态框,可选值为'select'(选择器)、'crud'(增删改查)" }, "overflowTagPopover": { "$ref": "#/definitions/TooltipWrapperSchema", "description": "开启最大标签展示数量后,选择器内收纳标签的Popover配置" }, "overflowTagPopoverInCRUD": { "$ref": "#/definitions/TooltipWrapperSchema", "description": "开启最大标签展示数量后,CRUD顶部内收纳标签的Popover配置" } }, "additionalProperties": false, "description": "开启最大标签展示数量的相关配置" }, "itemClearable": { "type": "boolean", "description": "选中项可删除,默认为true" } }, "required": [ "type", "overflowConfig" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "picker" }, "labelTpl": true, "labelField": true, "valueField": true, "pickerSchema": true, "modalMode": true, "modalSize": true, "modalTitle": true, "embed": true, "overflowConfig": true, "itemClearable": true }, "required": [ "type", "overflowConfig" ], "description": "Picker 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/picker" }, "RadiosControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "radios", "description": "指定为 Radios 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/radios" }, "columnsCount": { "type": "number", "description": "每行显示多少个" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "radios" }, "columnsCount": true }, "required": [ "type" ], "description": "Radio 单选框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/radios" }, "RadioControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "radio", "description": "指定为多行文本输入框" }, "trueValue": { "type": [ "boolean", "string", "number" ], "description": "勾选值" }, "falseValue": { "type": [ "boolean", "string", "number" ], "description": "未勾选值" }, "option": { "type": "string", "description": "选项说明" }, "badge": { "$ref": "#/definitions/BadgeObject", "description": "角标" }, "partial": { "type": "boolean" }, "optionType": { "type": "string", "enum": [ "default", "button" ] } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "radio" }, "trueValue": true, "falseValue": true, "option": true, "badge": true, "partial": true, "optionType": true }, "required": [ "type" ], "description": "Radio 单选框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/radios" }, "RangeControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-range" }, "value": { "$ref": "#/definitions/Value", "description": "滑块值" }, "max": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "最大值" }, "min": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "最小值" }, "step": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "步长" }, "unit": { "type": "string", "description": "单位" }, "showSteps": { "type": "boolean", "description": "是否展示步长" }, "parts": { "anyOf": [ { "type": "number" }, { "type": "array", "items": { "type": "number" } } ], "description": "分割块数" }, "marks": { "type": "array", "items": {}, "description": "刻度" }, "tooltipVisible": { "type": "boolean", "description": "是否展示标签" }, "tooltipPlacement": { "$ref": "#/definitions/TooltipPosType", "description": "标签方向" }, "multiple": { "type": "boolean", "description": "是否为双滑块" }, "joinValues": { "type": "boolean", "description": "是否通过分隔符连接" }, "delimiter": { "type": "string", "description": "分隔符" }, "showInput": { "type": "boolean", "description": "是否展示输入框" }, "disabled": { "type": "boolean", "description": "是否禁用" }, "clearable": { "type": "boolean", "description": "输入框是否可清除" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-range" }, "max": true, "min": true, "step": true, "unit": true, "showSteps": true, "parts": true, "marks": true, "tooltipVisible": true, "tooltipPlacement": true, "multiple": true, "joinValues": true, "delimiter": true, "showInput": true, "clearable": true }, "required": [ "type" ] }, "Value": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/MultipleValue" }, { "type": "number" }, { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2 } ], "description": "Range 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/range" }, "MultipleValue": { "type": "object", "properties": { "min": { "type": "number" }, "max": { "type": "number" } }, "required": [ "min", "max" ], "additionalProperties": false }, "TooltipPosType": { "type": "string", "enum": [ "auto", "top", "right", "bottom", "left" ] }, "RatingControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-rating" }, "count": { "type": "number", "description": "分数" }, "half": { "type": "boolean", "description": "允许半颗星" }, "allowClear": { "type": "boolean", "description": "是否允许再次点击后清除" }, "readonly": { "type": "boolean", "description": "是否只读" }, "colors": { "anyOf": [ { "type": "string" }, { "type": "object", "additionalProperties": { "type": "string" } } ], "description": "星星被选中的颜色" }, "inactiveColor": { "type": "string", "description": "未被选中的星星的颜色" }, "texts": { "type": "object", "additionalProperties": { "type": "string" }, "description": "星星被选中时的提示文字" }, "textPosition": { "$ref": "#/definitions/textPositionType", "description": "文字的位置" }, "char": { "type": "string", "description": "自定义字符" }, "charClassName": { "type": "string", "description": "自定义字符类名" }, "textClassName": { "type": "string", "description": "自定义文字类名" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-rating" }, "count": true, "half": true, "allowClear": true, "readonly": true, "colors": true, "inactiveColor": true, "texts": true, "textPosition": true, "char": true, "charClassName": true, "textClassName": true }, "required": [ "type" ], "description": "Rating 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/rating" }, "textPositionType": { "type": "string", "enum": [ "left", "right" ] }, "RichTextControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-rich-text" }, "vendor": { "type": "string", "enum": [ "froala", "tinymce" ], "description": "编辑器类型" }, "receiver": { "$ref": "#/definitions/SchemaApi", "description": "图片保存 API", "default": "/api/upload/image" }, "videoReceiver": { "$ref": "#/definitions/SchemaApi", "description": "视频保存 API", "default": "/api/upload/video" }, "fileField": { "type": "string", "description": "接收器的字段名" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "options": { "description": "tinymce 或 froala 的配置" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-rich-text" }, "vendor": true, "receiver": true, "videoReceiver": true, "fileField": true, "borderMode": true, "options": true }, "required": [ "type" ], "description": "RichText 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-rich-text" }, "RepeatControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-repeat" }, "options": { "type": "string" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-repeat" }, "options": true }, "required": [ "type" ], "description": "Repeat 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/repeat" }, "SelectControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "select", "multi-select" ], "description": "指定为 Select 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/select" }, "autoComplete": { "$ref": "#/definitions/SchemaApi", "description": "自动完成 API,当输入部分文字的时候,会将这些文字通过 ${term} 可以取到,发送给接口。 接口可以返回匹配到的选项,帮助用户输入。" }, "menuTpl": { "type": "string", "description": "可以自定义菜单展示。" }, "showInvalidMatch": { "type": "boolean", "description": "当在value值未匹配到当前options中的选项时,是否value值对应文本飘红显示" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "selectMode": { "type": "string", "enum": [ "table", "group", "tree", "chained", "associated" ], "description": "勾选展示模式" }, "leftOptions": { "type": "array", "items": { "$ref": "#/definitions/Option" }, "description": "当 selectMode 为 associated 时用来定义左侧的选项" }, "leftMode": { "type": "string", "enum": [ "tree", "list" ], "description": "当 selectMode 为 associated 时用来定义左侧的选择模式" }, "rightMode": { "type": "string", "enum": [ "table", "list", "tree", "chained" ], "description": "当 selectMode 为 associated 时用来定义右侧的选择模式" }, "searchResultMode": { "type": "string", "enum": [ "table", "list", "tree", "chained" ], "description": "搜索结果展示模式" }, "columns": { "type": "array", "items": {}, "description": "当 selectMode 为 table 时定义表格列信息。" }, "searchResultColumns": { "type": "array", "items": {}, "description": "当 searchResultMode 为 table 时定义表格列信息。" }, "searchable": { "type": "boolean", "description": "可搜索?" }, "searchApi": { "$ref": "#/definitions/SchemaApi", "description": "搜索 API" }, "itemHeight": { "type": "number", "description": "单个选项的高度,主要用于虚拟渲染" }, "virtualThreshold": { "type": "number", "description": "在选项数量达到多少时开启虚拟渲染" }, "checkAll": { "type": "boolean", "description": "可多选条件下,是否可全选" }, "defaultCheckAll": { "type": "boolean", "description": "可多选条件下,是否默认全选中所有值" }, "checkAllLabel": { "type": "string", "description": "可多选条件下,全选项文案,默认 ”全选“" }, "maxTagCount": { "type": "number", "description": "标签的最大展示数量,超出数量后以收纳浮层的方式展示,仅在多选模式开启后生效" }, "overflowTagPopover": { "type": "object", "description": "收纳标签的Popover配置" }, "optionClassName": { "$ref": "#/definitions/SchemaClassName", "description": "选项的自定义CSS类名" }, "overlay": { "type": "object", "properties": { "width": { "type": [ "number", "string" ], "description": "下拉框 Popover 的宽度设置,支持单位 '%'、'px'、'rem'、'em'、'vw', 支持相对写法如 '+20px'" }, "align": { "type": "string", "enum": [ "left", "center", "right" ], "description": "下拉框 Popover 的对齐方式" }, "filterOption": { "type": "string", "const": "string", "description": "检索函数" } }, "additionalProperties": false, "description": "下拉框 Popover 设置" }, "testIdBuilder": { "$ref": "#/definitions/TestIdBuilder" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "enum": [ "select", "multi-select" ] }, "autoComplete": true, "menuTpl": true, "showInvalidMatch": true, "borderMode": true, "selectMode": true, "leftOptions": true, "leftMode": true, "rightMode": true, "searchResultMode": true, "columns": true, "searchResultColumns": true, "searchable": true, "searchApi": true, "itemHeight": true, "virtualThreshold": true, "defaultCheckAll": true, "checkAllLabel": true, "maxTagCount": true, "overflowTagPopover": true, "optionClassName": true, "overlay": true, "testIdBuilder": true }, "required": [ "type" ], "description": "Select 下拉选择框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/select" }, "SubFormControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-sub-form", "description": "指定为 SubForm 子表单" }, "placeholder": { "type": "string", "description": "占位符" }, "multiple": { "type": "boolean", "description": "是否多选" }, "draggable": { "type": "boolean", "description": "是否可拖拽排序" }, "draggableTip": { "type": "string", "description": "拖拽提示信息" }, "addable": { "type": "boolean", "description": "是否可新增" }, "removable": { "type": "boolean", "description": "是否可删除" }, "minLength": { "type": "number", "description": "最少个数" }, "maxLength": { "type": "number", "description": "最多个数" }, "labelField": { "type": "string", "description": "当值中存在这个字段,则按钮名称将使用此字段的值来展示。" }, "btnLabel": { "type": "string", "description": "按钮默认名称", "default": "设置" }, "addButtonText": { "type": "string", "description": "新增按钮文字" }, "addButtonClassName": { "$ref": "#/definitions/SchemaClassName", "description": "新增按钮 CSS 类名" }, "itemClassName": { "$ref": "#/definitions/SchemaClassName", "description": "值元素的类名" }, "itemsClassName": { "$ref": "#/definitions/SchemaClassName", "description": "值列表元素的类名" }, "showErrorMsg": { "type": "boolean", "description": "是否在左下角显示报错信息" }, "form": { "$ref": "#/definitions/BaseFormSchema", "description": "子表单详情" }, "scaffold": {} }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-sub-form" }, "multiple": true, "draggable": true, "draggableTip": true, "addable": true, "removable": true, "minLength": true, "maxLength": true, "labelField": true, "btnLabel": true, "addButtonText": true, "addButtonClassName": true, "itemClassName": true, "itemsClassName": true, "showErrorMsg": true, "form": true, "scaffold": true }, "required": [ "type" ], "description": "SubForm 子表单 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/subform" }, "SwitchControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "switch", "description": "指定为多行文本输入框" }, "trueValue": { "type": [ "boolean", "string", "number" ], "description": "勾选值" }, "falseValue": { "type": [ "boolean", "string", "number" ], "description": "未勾选值" }, "option": { "type": "string", "description": "选项说明" }, "onText": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/IconSchema" }, { "$ref": "#/definitions/SchemaCollection" } ], "description": "开启时显示的内容" }, "offText": { "anyOf": [ { "type": "string" }, { "$ref": "#/definitions/IconSchema" }, { "$ref": "#/definitions/SchemaCollection" } ], "description": "关闭时显示的内容" }, "size": { "type": "string", "enum": [ "sm", "md" ], "description": "开关尺寸" }, "loading": { "type": "boolean", "description": "是否处于加载状态" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "switch" }, "trueValue": true, "falseValue": true, "option": true, "onText": true, "offText": true, "loading": true }, "required": [ "type" ], "description": "Switch 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/switch" }, "StaticExactControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "static" }, "tpl": { "$ref": "#/definitions/SchemaTpl", "description": "内容模板, 支持 HTML" }, "text": { "$ref": "#/definitions/SchemaTpl", "description": "内容模板,不支持 HTML" }, "popOver": { "$ref": "#/definitions/SchemaPopOver", "description": "配置查看详情功能" }, "quickEdit": { "$ref": "#/definitions/SchemaQuickEdit", "description": "配置快速编辑功能" }, "copyable": { "$ref": "#/definitions/SchemaCopyable", "description": "配置点击复制功能" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,默认是无边框的" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "static" }, "tpl": true, "text": true, "popOver": true, "quickEdit": true, "copyable": true, "borderMode": true }, "required": [ "type" ], "description": "Static 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/static" }, "TableControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-table" }, "addable": { "type": "boolean", "description": "可新增" }, "childrenAddable": { "type": "boolean", "description": "是否可以新增子项" }, "copyable": { "type": "boolean", "description": "可复制新增" }, "copyBtnLabel": { "type": "string", "description": "复制按钮文字" }, "copyBtnIcon": { "type": "string", "description": "复制按钮图标" }, "copyAddBtn": { "type": "boolean", "description": "是否显示复制按钮" }, "copyData": { "type": "object", "description": "复制的时候用来配置复制映射的数据。默认值是 {&:$$},相当与复制整个行数据 通常有时候需要用来标记是复制过来的,也可能需要删掉一下主键字段。" }, "draggable": { "type": "boolean", "description": "是否可以拖拽排序" }, "addApi": { "$ref": "#/definitions/SchemaApi", "description": "新增 API" }, "addBtnLabel": { "type": "string", "description": "新增按钮文字" }, "addBtnIcon": { "type": "string", "description": "新增按钮图标" }, "subAddBtnLabel": { "type": "string", "description": "孩子新增按钮文字" }, "subAddBtnIcon": { "type": "string", "description": "孩子新增按钮图标" }, "removable": { "type": "boolean", "description": "可否删除" }, "deleteApi": { "$ref": "#/definitions/SchemaApi", "description": "删除的 API" }, "editable": { "type": "boolean", "description": "可否编辑" }, "editBtnLabel": { "type": "string", "description": "更新按钮名称" }, "editBtnIcon": { "type": "string", "description": "更新按钮图标" }, "confirmBtnLabel": { "type": "string", "description": "确认按钮文字" }, "confirmBtnIcon": { "type": "string", "description": "确认按钮图标" }, "cancelBtnLabel": { "type": "string", "description": "取消按钮文字" }, "cancelBtnIcon": { "type": "string", "description": "取消按钮图标" }, "deleteBtnLabel": { "type": "string", "description": "删除按钮文字" }, "deleteBtnIcon": { "type": "string", "description": "删除按钮图标" }, "updateApi": { "$ref": "#/definitions/SchemaApi", "description": "更新 API" }, "scaffold": { "description": "初始值,新增的时候" }, "deleteConfirmText": { "type": "string", "description": "删除确认文字" }, "valueField": { "type": "string", "description": "值字段" }, "needConfirm": { "type": "boolean", "description": "是否为确认的编辑模式。" }, "canAccessSuperData": { "type": "boolean", "description": "是否可以访问父级数据,正常 combo 已经关联到数组成员,是不能访问父级数据的。" }, "showIndex": { "type": "boolean", "description": "是否显示序号" }, "perPage": { "type": "number", "description": "分页个数,默认不分页" }, "maxLength": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "限制最大个数" }, "minLength": { "anyOf": [ { "type": "number" }, { "$ref": "#/definitions/SchemaTokenizeableString" } ], "description": "限制最小个数" }, "showFooterAddBtn": { "type": "boolean", "description": "是否显示底部新增按钮" }, "showTableAddBtn": { "type": "boolean", "description": "是否显示表格操作栏新增按钮" }, "footerAddBtn": { "$ref": "#/definitions/SchemaCollection", "description": "底部新增按钮配置" }, "enableStaticTransform": { "type": "boolean", "description": "是否开启 static 状态切换" }, "toolbarClassName": { "$ref": "#/definitions/SchemaClassName", "description": "底部工具栏CSS样式类" }, "matchFunc": { "anyOf": [ { "type": "string" }, {} ], "description": "自定义搜索匹配函数,当存在列的 searchable 为 true 时,会基于该函数计算的匹配结果进行过滤,主要用于处理列字段类型较为复杂或者字段值格式和后端返回不一致的场景\n\n参数说明\n\n * `items` 当前表格数据 * `itemsRaw` 当前表格数据(未处理) * `options` 配置 * `options.query` 查询条件 * `options.columns` 列配置 * `options.matchSorter` 系统默认的排序方法" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControl", "additionalProperties": true }, { "$ref": "#/definitions/BaseTableSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "input-table" }, "testid": true, "affixHeader": true, "affixFooter": true, "columns": true, "columnsTogglable": true, "footable": true, "footerClassName": true, "headerClassName": true, "placeholder": true, "showIndex": true, "showFooter": true, "showHeader": true, "source": true, "tableClassName": true, "title": true, "toolbarClassName": true, "combineNum": true, "combineFromIndex": true, "prefixRow": true, "affixRow": true, "resizable": true, "rowClassNameExpr": true, "itemBadge": true, "autoGenerateFilter": true, "canAccessSuperData": true, "autoFillHeight": true, "tableLayout": true, "deferApi": true, "persistKey": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "size": true, "addable": true, "childrenAddable": true, "copyable": true, "copyBtnLabel": true, "copyBtnIcon": true, "copyAddBtn": true, "copyData": true, "draggable": true, "addApi": true, "addBtnLabel": true, "addBtnIcon": true, "subAddBtnLabel": true, "subAddBtnIcon": true, "removable": true, "deleteApi": true, "editable": true, "editBtnLabel": true, "editBtnIcon": true, "confirmBtnLabel": true, "confirmBtnIcon": true, "cancelBtnLabel": true, "cancelBtnIcon": true, "deleteBtnLabel": true, "deleteBtnIcon": true, "updateApi": true, "scaffold": true, "deleteConfirmText": true, "valueField": true, "needConfirm": true, "perPage": true, "maxLength": true, "minLength": true, "showFooterAddBtn": true, "showTableAddBtn": true, "footerAddBtn": true, "enableStaticTransform": true, "matchFunc": true }, "required": [ "type" ] }, "TabsTransferControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseTransferControlSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "tabs-transfer" }, "showArrow": true, "sortable": true, "selectMode": true, "resultListModeFollowSelect": true, "leftOptions": true, "leftMode": true, "rightMode": true, "searchResultMode": true, "columns": true, "searchResultColumns": true, "searchable": true, "resultSearchable": true, "searchApi": true, "selectTitle": true, "resultTitle": true, "menuTpl": true, "valueTpl": true, "searchPlaceholder": true, "resultSearchPlaceholder": true, "statistics": true, "itemHeight": true, "virtualThreshold": true, "showInvalidMatch": true, "onlyChildren": true, "initiallyOpen": true, "autoCheckChildren": true, "pagination": true }, "required": [ "type" ], "description": "TabsTransfer 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/tabs-transfer" }, "BaseTransferControlSchema": { "allOf": [ { "type": "object", "properties": { "showArrow": { "type": "boolean", "description": "是否显示剪头" }, "sortable": { "type": "boolean", "description": "可排序?" }, "selectMode": { "type": "string", "enum": [ "table", "list", "tree", "chained", "associated" ], "description": "勾选展示模式" }, "resultListModeFollowSelect": { "type": "boolean", "description": "结果面板是否追踪显示" }, "leftOptions": { "type": "array", "items": { "$ref": "#/definitions/Option" }, "description": "当 selectMode 为 associated 时用来定义左侧的选项" }, "leftMode": { "type": "string", "enum": [ "tree", "list" ], "description": "当 selectMode 为 associated 时用来定义左侧的选择模式" }, "rightMode": { "type": "string", "enum": [ "table", "list", "tree", "chained" ], "description": "当 selectMode 为 associated 时用来定义右侧的选择模式" }, "searchResultMode": { "type": "string", "enum": [ "table", "list", "tree", "chained" ], "description": "搜索结果展示模式" }, "columns": { "type": "array", "items": {}, "description": "当 selectMode 为 table 时定义表格列信息。" }, "searchResultColumns": { "type": "array", "items": {}, "description": "当 searchResultMode 为 table 时定义表格列信息。" }, "searchable": { "type": "boolean", "description": "可搜索?" }, "resultSearchable": { "type": "boolean", "description": "结果(右则)列表的检索功能,当设置为true时,可以通过输入检索模糊匹配检索内容" }, "searchApi": { "$ref": "#/definitions/SchemaApi", "description": "搜索 API" }, "selectTitle": { "type": "string", "description": "左侧的标题文字" }, "resultTitle": { "type": "string", "description": "右侧结果的标题文字" }, "menuTpl": { "$ref": "#/definitions/SchemaObject", "description": "用来丰富选项展示" }, "valueTpl": { "$ref": "#/definitions/SchemaObject", "description": "用来丰富值的展示" }, "searchPlaceholder": { "type": "string", "description": "左侧列表搜索框提示" }, "resultSearchPlaceholder": { "type": "string", "description": "右侧列表搜索框提示" }, "statistics": { "type": "boolean", "description": "统计数字" }, "itemHeight": { "type": "number", "description": "单个选项的高度,主要用于虚拟渲染" }, "virtualThreshold": { "type": "number", "description": "在选项数量达到多少时开启虚拟渲染" }, "showInvalidMatch": { "type": "boolean", "description": "当在value值未匹配到当前options中的选项时,是否value值对应文本飘红显示" }, "onlyChildren": { "type": "boolean", "description": "树形模式下,仅选中子节点" }, "initiallyOpen": { "type": "boolean", "description": "是否默认都展开" }, "autoCheckChildren": { "type": "boolean", "description": "ui级联关系,true代表级联选中,false代表不级联,默认为true" }, "pagination": { "type": "object", "additionalProperties": false, "properties": { "layout": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "通过控制layout属性的顺序,调整分页结构 total,perPage,pager,go", "default": "pager" }, "maxButtons": { "type": "number", "description": "最多显示多少个分页按钮。", "default": 5 }, "perPageAvailable": { "type": "array", "items": { "type": "number" }, "description": "指定每页可以显示多少条", "default": [ 10, 20, 50, 100 ] }, "popOverContainerSelector": { "type": "string", "description": "弹层挂载节点", "default": false }, "enable": { "$ref": "#/definitions/SchemaExpression", "description": "是否左侧选项分页,默认不开启" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "分页组件CSS类名" }, "loadDataOnce": { "type": "boolean", "description": "是否开启前端分页" } }, "required": [ "enable" ], "description": "分页配置,selectMode为默认和table才会生效" } } }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": true, "showArrow": true, "sortable": true, "selectMode": true, "resultListModeFollowSelect": true, "leftOptions": true, "leftMode": true, "rightMode": true, "searchResultMode": true, "columns": true, "searchResultColumns": true, "searchable": true, "resultSearchable": true, "searchApi": true, "selectTitle": true, "resultTitle": true, "menuTpl": true, "valueTpl": true, "searchPlaceholder": true, "resultSearchPlaceholder": true, "statistics": true, "itemHeight": true, "virtualThreshold": true, "showInvalidMatch": true, "onlyChildren": true, "initiallyOpen": true, "autoCheckChildren": true, "pagination": true } }, "TagControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-tag", "description": "指定为 InputTag 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-tag" }, "optionsTip": { "type": "string", "description": "选项提示信息" }, "dropdown": { "type": "boolean", "description": "是否为下拉模式" }, "max": { "type": "number", "description": "允许添加的标签的最大数量" }, "maxTagLength": { "type": "number", "description": "单个标签的最大文本长度" }, "maxTagCount": { "type": "number", "description": "标签的最大展示数量,超出数量后以收纳浮层的方式展示,仅在多选模式开启后生效" }, "overflowTagPopover": { "$ref": "#/definitions/TooltipWrapperSchema", "description": "收纳标签的Popover配置" }, "enableBatchAdd": { "type": "boolean", "description": "是否开启批量添加模式" }, "separator": { "type": "string", "description": "开启批量添加后,输入多个标签的分隔符,支持传入多个符号,默认为\"-\"", "default": "-" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-tag" }, "optionsTip": true, "dropdown": true, "max": true, "maxTagLength": true, "maxTagCount": true, "overflowTagPopover": true, "enableBatchAdd": true, "separator": true }, "required": [ "type" ], "description": "Tag 输入框 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/tag" }, "TextControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "input-text", "input-email", "input-url", "input-password", "native-date", "native-time", "native-number" ], "description": "指定为 InputText 渲染器。\n\nhttps://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-text" }, "addOn": { "$ref": "#/definitions/InputTextAddOn", "description": "附带的操作按钮" }, "trimContents": { "type": "boolean", "description": "是否去除首尾空白文本。" }, "autoComplete": { "$ref": "#/definitions/SchemaApi", "description": "自动完成 API,当输入部分文字的时候,会将这些文字通过 ${term} 可以取到,发送给接口。 接口可以返回匹配到的选项,帮助用户输入。" }, "nativeAutoComplete": { "type": "string", "description": "配置原生 input 的 autoComplete 属性", "default": "off" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "minLength": { "type": "number", "description": "限制文字最小输入个数" }, "maxLength": { "type": "number", "description": "限制文字最大输入个数" }, "showCounter": { "type": "boolean", "description": "是否显示计数" }, "prefix": { "type": "string", "description": "前缀" }, "suffix": { "type": "string", "description": "后缀" }, "transform": { "type": "object", "properties": { "lowerCase": { "type": "boolean", "description": "用户输入的字符自动转小写" }, "upperCase": { "type": "boolean", "description": "用户输入的字符自动转大写" } }, "additionalProperties": false, "description": "自动转换值" }, "inputControlClassName": { "type": "string", "description": "control节点的CSS类名" }, "nativeInputClassName": { "type": "string", "description": "原生input标签的CSS类名" }, "clearValueOnEmpty": { "type": "boolean", "description": "在内容为空的时候清除值" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "enum": [ "input-text", "input-email", "input-url", "input-password", "native-date", "native-time", "native-number" ] }, "addOn": true, "trimContents": true, "autoComplete": true, "nativeAutoComplete": true, "borderMode": true, "minLength": true, "maxLength": true, "showCounter": true, "prefix": true, "suffix": true, "transform": true, "inputControlClassName": true, "nativeInputClassName": true, "clearValueOnEmpty": true }, "required": [ "type" ], "description": "Text 文本输入框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-text" }, "InputTextAddOn": { "allOf": [ { "$ref": "#/definitions/ActionSchemaLoose" }, { "$ref": "#/definitions/InputTextAddOnObject", "additionalProperties": true } ] }, "InputTextAddOnObject": { "type": "object", "properties": { "position": { "type": "string", "enum": [ "left", "right" ], "description": "操作按钮位置" } } }, "TextareaControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "textarea", "description": "指定为多行文本输入框" }, "maxRows": { "type": "number", "description": "最大行数" }, "minRows": { "type": "number", "description": "最小行数" }, "readOnly": { "type": "boolean", "description": "是否只读" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "maxLength": { "type": "number", "description": "限制文字个数" }, "showCounter": { "type": "boolean", "description": "是否显示计数" }, "clearable": { "type": "boolean", "description": "输入内容是否可清除" }, "resetValue": { "type": "string", "description": "重置值" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormBaseControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "textarea" }, "maxRows": true, "minRows": true, "borderMode": true, "maxLength": true, "showCounter": true, "clearable": true, "resetValue": true }, "required": [ "type" ], "description": "TextArea 多行文本输入框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/textarea" }, "TransferControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseTransferControlSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "transfer" }, "showArrow": true, "sortable": true, "selectMode": true, "resultListModeFollowSelect": true, "leftOptions": true, "leftMode": true, "rightMode": true, "searchResultMode": true, "columns": true, "searchResultColumns": true, "searchable": true, "resultSearchable": true, "searchApi": true, "selectTitle": true, "resultTitle": true, "menuTpl": true, "valueTpl": true, "searchPlaceholder": true, "resultSearchPlaceholder": true, "statistics": true, "itemHeight": true, "virtualThreshold": true, "showInvalidMatch": true, "onlyChildren": true, "initiallyOpen": true, "autoCheckChildren": true, "pagination": true }, "required": [ "type" ], "description": "Transfer 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/transfer" }, "TransferPickerControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "transfer-picker" }, "borderMode": { "type": "string", "enum": [ "full", "half", "none" ], "description": "边框模式,全边框,还是半边框,或者没边框。" }, "pickerSize": { "type": "string", "enum": [ "xs", "sm", "md", "lg", "xl", "full" ], "description": "弹窗大小" }, "onlyChildren": { "type": "boolean", "description": "树形模式下,仅选中子节点" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseTransferControlSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "transfer-picker" }, "showArrow": true, "sortable": true, "selectMode": true, "resultListModeFollowSelect": true, "leftOptions": true, "leftMode": true, "rightMode": true, "searchResultMode": true, "columns": true, "searchResultColumns": true, "searchable": true, "resultSearchable": true, "searchApi": true, "selectTitle": true, "resultTitle": true, "menuTpl": true, "valueTpl": true, "searchPlaceholder": true, "resultSearchPlaceholder": true, "statistics": true, "itemHeight": true, "virtualThreshold": true, "showInvalidMatch": true, "onlyChildren": true, "initiallyOpen": true, "autoCheckChildren": true, "pagination": true, "borderMode": true, "pickerSize": true }, "required": [ "type" ], "description": "TransferPicker 穿梭器的弹框形态 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/transfer-picker" }, "TabsTransferPickerControlSchema": { "allOf": [ { "$ref": "#/definitions/BaseTransferControlSchema", "additionalProperties": true }, { "$ref": "#/definitions/SpinnerExtraProps", "additionalProperties": true } ], "additionalProperties": false, "properties": { "loadingConfig": true, "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "tabs-transfer-picker" }, "showArrow": true, "sortable": true, "selectMode": true, "resultListModeFollowSelect": true, "leftOptions": true, "leftMode": true, "rightMode": true, "searchResultMode": true, "columns": true, "searchResultColumns": true, "searchable": true, "resultSearchable": true, "searchApi": true, "selectTitle": true, "resultTitle": true, "menuTpl": true, "valueTpl": true, "searchPlaceholder": true, "resultSearchPlaceholder": true, "statistics": true, "itemHeight": true, "virtualThreshold": true, "showInvalidMatch": true, "onlyChildren": true, "initiallyOpen": true, "autoCheckChildren": true, "pagination": true }, "required": [ "type" ], "description": "TabsTransferPicker 穿梭器的弹框形态 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/tabs-transfer-picker" }, "TreeControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "input-tree", "description": "指定为 InputTree 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-tree" }, "hideRoot": { "type": "boolean", "description": "是否隐藏顶级" }, "rootLabel": { "type": "string", "description": "顶级选项的名称" }, "rootValue": { "description": "顶级选项的值" }, "showIcon": { "type": "boolean", "description": "显示图标" }, "autoCheckChildren": { "type": "boolean", "description": "ui级联关系,true代表级联选中,false代表不级联,默认为true" }, "cascade": { "type": "boolean", "description": "该属性代表数据级联关系,autoCheckChildren为true时生效,默认为false,具体数据级联关系如下: 1.casacde为false,ui行为为级联选中子节点,子节点禁用;值只包含父节点的值 2.cascade为false,withChildren为true,ui行为为级联选中子节点,子节点禁用;值包含父子节点的值 3.cascade为true,ui行为级联选中子节点,子节点可反选,值包含父子节点的值,此时withChildren属性失效 4.cascade不论为true还是false,onlyChildren为true,ui行为级联选中子节点,子节点可反选,值只包含子节点的值" }, "nodeBehavior": { "type": "array", "items": { "type": "string", "enum": [ "unfold", "check" ] }, "description": "节点行为配置,默认为选中" }, "autoCancelParent": { "type": "boolean", "description": "子节点取消时自动取消父节点的值,默认为false" }, "withChildren": { "type": "boolean", "description": "选父级的时候是否把子节点的值也包含在内。" }, "onlyChildren": { "type": "boolean", "description": "选父级的时候,是否只把子节点的值包含在内" }, "onlyLeaf": { "type": "boolean", "description": "单选时,只运行选择叶子节点" }, "rootCreatable": { "type": "boolean", "description": "顶级节点是否可以创建子节点" }, "enableNodePath": { "type": "boolean", "description": "是否开启节点路径模式" }, "pathSeparator": { "type": "string", "description": "开启节点路径模式后,节点路径的分隔符" }, "showOutline": { "type": "boolean", "description": "是否显示展开线" }, "deferApi": { "$ref": "#/definitions/SchemaApi", "description": "懒加载接口" }, "highlightTxt": { "type": "string", "description": "需要高亮的字符串" }, "enableDefaultIcon": { "type": "boolean", "description": "是否为选项添加默认的Icon,默认值为true" }, "searchable": { "type": "boolean", "description": "是否开启搜索" }, "searchApi": { "$ref": "#/definitions/SchemaApi", "description": "搜索 API" }, "itemActions": { "$ref": "#/definitions/SchemaCollection", "description": "自定义节点操作栏区域" }, "searchConfig": { "type": "object", "properties": { "className": { "type": "string", "description": "搜索框外层CSS样式类" }, "placeholder": { "type": "string", "description": "占位符" }, "mini": { "type": "boolean", "description": "是否为 Mini 样式。" }, "enhance": { "type": "boolean", "description": "是否为加强样式" }, "clearable": { "type": "boolean", "description": "是否可清除" }, "searchImediately": { "type": "boolean", "description": "是否立马搜索。" }, "sticky": { "type": "boolean", "description": "搜索框是否吸顶" } }, "additionalProperties": false, "description": "搜索框的配置" }, "treeClassName": { "type": "string", "description": "tree 组件层类名" }, "heightAuto": { "type": "boolean", "description": "高度自动增长?" }, "iconField": { "type": "string", "description": "设置 icon 字段名" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "input-tree" }, "hideRoot": true, "rootLabel": true, "rootValue": true, "showIcon": true, "autoCheckChildren": true, "cascade": true, "nodeBehavior": true, "autoCancelParent": true, "withChildren": true, "onlyChildren": true, "onlyLeaf": true, "rootCreatable": true, "enableNodePath": true, "pathSeparator": true, "showOutline": true, "highlightTxt": true, "enableDefaultIcon": true, "searchable": true, "searchApi": true, "itemActions": true, "searchConfig": true, "treeClassName": true, "heightAuto": true, "iconField": true }, "required": [ "type" ], "description": "Tree 下拉选择框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/tree" }, "TreeSelectControlSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "tree-select", "description": "指定为 TreeSelect 渲染器。 https://aisuda.bce.baidu.com/amis/zh-CN/components/form/tree-select" }, "hideRoot": { "type": "boolean", "description": "是否隐藏顶级" }, "rootLabel": { "type": "string", "description": "顶级选项的名称" }, "rootValue": { "description": "顶级选项的值" }, "showIcon": { "type": "boolean", "description": "显示图标" }, "cascade": { "type": "boolean", "description": "父子之间是否完全独立。" }, "nodeBehavior": { "type": "array", "items": { "type": "string", "enum": [ "unfold", "check" ] }, "description": "节点行为配置,默认为选中" }, "withChildren": { "type": "boolean", "description": "选父级的时候是否把子节点的值也包含在内。" }, "onlyChildren": { "type": "boolean", "description": "选父级的时候,是否只把子节点的值包含在内" }, "onlyLeaf": { "type": "boolean", "description": "单选时,只运行选择叶子节点" }, "rootCreatable": { "type": "boolean", "description": "顶级节点是否可以创建子节点" }, "hideNodePathLabel": { "type": "boolean", "description": "是否隐藏选择框中已选中节点的祖先节点的文本信息" }, "enableNodePath": { "type": "boolean", "description": "是否开启节点路径模式" }, "pathSeparator": { "type": "string", "description": "开启节点路径模式后,节点路径的分隔符" }, "showOutline": { "type": "boolean", "description": "是否显示展开线" }, "deferApi": { "$ref": "#/definitions/SchemaApi", "description": "懒加载接口" }, "maxTagCount": { "type": "number", "description": "标签的最大展示数量,超出数量后以收纳浮层的方式展示,仅在多选模式开启后生效" }, "overflowTagPopover": { "$ref": "#/definitions/TooltipWrapperSchema", "description": "收纳标签的Popover配置" }, "menuTpl": { "type": "string", "description": "自定义选项" }, "autoCancelParent": { "type": "boolean", "description": "子节点取消时自动取消父节点的值,默认为false" }, "itemActions": { "$ref": "#/definitions/SchemaCollection", "description": "自定义节点操作栏区域" }, "enableDefaultIcon": { "type": "boolean", "description": "是否为选项添加默认的Icon,默认值为true" }, "testIdBuilder": { "$ref": "#/definitions/TestIdBuilder" } }, "required": [ "type" ] }, { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "tree-select" }, "hideRoot": true, "rootLabel": true, "rootValue": true, "showIcon": true, "cascade": true, "nodeBehavior": true, "withChildren": true, "onlyChildren": true, "onlyLeaf": true, "rootCreatable": true, "hideNodePathLabel": true, "enableNodePath": true, "pathSeparator": true, "showOutline": true, "maxTagCount": true, "overflowTagPopover": true, "menuTpl": true, "autoCancelParent": true, "itemActions": true, "enableDefaultIcon": true, "testIdBuilder": true }, "required": [ "type" ], "description": "Tree 下拉选择框。 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/tree" }, "UserSelectControlSchema": { "allOf": [ { "$ref": "#/definitions/FormOptionsSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "options": true, "source": true, "selectFirst": true, "initFetchOn": true, "initFetch": true, "multiple": true, "checkAll": true, "joinValues": true, "delimiter": true, "valuesNoWrap": true, "extractValue": true, "clearable": true, "resetValue": true, "deferField": true, "deferApi": true, "addApi": true, "addControls": true, "addDialog": true, "creatable": true, "createBtnLabel": true, "editable": true, "editApi": true, "editControls": true, "editDialog": true, "removable": true, "deleteApi": true, "deleteConfirmText": true, "clearValueOnSourceChange": true, "label": true, "labelAlign": true, "labelWidth": true, "labelOverflow": true, "labelClassName": true, "name": true, "extraName": true, "remark": true, "labelRemark": true, "hint": true, "submitOnChange": true, "readOnly": true, "readOnlyOn": true, "validateOnChange": true, "description": true, "desc": true, "descriptionClassName": true, "mode": true, "horizontal": true, "inline": true, "inputClassName": true, "placeholder": true, "required": true, "validationErrors": true, "validations": true, "value": true, "clearValueOnHidden": true, "validateApi": true, "autoFill": true, "initAutoFill": true, "row": true, "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "size": true, "type": { "type": "string", "const": "users-select" } }, "required": [ "type" ], "description": "UserSelect 移动端人员选择。" }, "DateRangeSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "date-range", "description": "指定为日期展示类型" }, "valueFormat": { "type": "string", "description": "值的时间格式,参考 moment 中的格式说明。" }, "format": { "type": "string", "description": "展示的时间格式,参考 moment 中的格式说明。" }, "displayFormat": { "type": "string", "description": "展示的时间格式,参考 moment 中的格式说明。(新:同format)" }, "delimiter": { "type": "string", "description": "分割符" }, "connector": { "type": "string", "description": "连接符" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "date-range" }, "testid": true, "valueFormat": true, "format": true, "displayFormat": true, "delimiter": true, "connector": true }, "required": [ "type" ], "description": "DateRange 展示渲染器。" }, "MultilineTextSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "multiline-text" }, "text": { "type": "string", "description": "文本" }, "maxRows": { "type": "number", "description": "最大行数" }, "expendButtonText": { "type": "string", "description": "展开按钮文本" }, "collapseButtonText": { "type": "string", "description": "收起按钮文本" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "multiline-text" }, "testid": true, "text": true, "maxRows": true, "expendButtonText": true, "collapseButtonText": true }, "required": [ "type" ], "description": "MultilineText" }, "PasswordSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "password" }, "mosaicText": { "type": "string", "description": "打码模式的文本" } }, "required": [ "type" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "password" }, "testid": true, "mosaicText": true }, "required": [ "type" ], "description": "Password" }, "WordsSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "words" }, "limit": { "type": "number", "description": "展示限制, 为0时也无限制" }, "expendButtonText": { "type": "string", "description": "展示文字" }, "expendButton": { "$ref": "#/definitions/SchemaObject", "description": "展示文字" }, "collapseButtonText": { "type": "string", "description": "收起文字" }, "collapseButton": { "$ref": "#/definitions/SchemaObject", "description": "展示文字" }, "words": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "string" } } ], "description": "tags数据" }, "inTag": { "anyOf": [ { "type": "boolean" }, { "$ref": "#/definitions/TagSchema" } ], "description": "useTag 当数据是数组时,是否使用tag的方式展示" }, "delimiter": { "type": "string", "description": "分割符" }, "labelTpl": { "type": "string", "description": "标签模板" } }, "required": [ "type", "words" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "words" }, "testid": true, "limit": true, "expendButtonText": true, "expendButton": true, "collapseButtonText": true, "collapseButton": true, "words": true, "inTag": true, "delimiter": true, "labelTpl": true }, "required": [ "type", "words" ], "description": "Words" }, "TagSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "className": { "$ref": "#/definitions/SchemaClassName", "description": "类名" }, "style": { "type": "object", "description": "自定义样式" }, "color": { "type": "string", "description": "标签颜色" }, "label": { "type": "string", "description": "标签文本内容" }, "displayMode": { "type": "string", "enum": [ "normal", "rounded", "status" ], "description": "normal: 面性标签,对应color的背景色 rounded: 线性标签, 对应color的边框 status: 带图标的标签, 图标可以自定义" }, "icon": { "$ref": "#/definitions/SchemaIcon", "description": "status模式时候设置的前置图标" }, "closable": { "type": "boolean", "description": "是否展示关闭按钮" }, "closeIcon": { "$ref": "#/definitions/SchemaIcon", "description": "关闭图标" }, "checkable": { "type": "boolean", "description": "是否是可选的标签" }, "checked": { "type": "boolean", "description": "是否选中" }, "disabled": { "type": "boolean", "description": "是否禁用" } }, "required": [ "type", "label", "closeIcon" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "tag" }, "testid": true, "color": true, "label": true, "displayMode": true, "icon": true, "closable": true, "closeIcon": true, "checkable": true, "checked": true }, "required": [ "type", "label", "closeIcon" ], "description": "Tag" }, "SliderSchema": { "allOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "slider" }, "body": { "$ref": "#/definitions/BaseSchema" }, "left": { "$ref": "#/definitions/BaseSchema" }, "right": { "$ref": "#/definitions/BaseSchema" }, "bodyWidth": { "type": "string" } }, "required": [ "type", "body" ] }, { "$ref": "#/definitions/BaseSchema", "additionalProperties": true } ], "additionalProperties": false, "properties": { "$$id": true, "className": true, "$ref": true, "disabled": true, "disabledOn": true, "hidden": true, "hiddenOn": true, "visible": true, "visibleOn": true, "id": true, "onEvent": true, "static": true, "staticOn": true, "staticPlaceholder": true, "staticClassName": true, "staticLabelClassName": true, "staticInputClassName": true, "staticSchema": true, "style": true, "editorSetting": true, "useMobileUI": true, "type": { "type": "string", "const": "slider" }, "testid": true, "body": true, "left": true, "right": true, "bodyWidth": true }, "required": [ "type", "body" ] }, "SchemaDefaultData": { "type": "object", "description": "初始数据,设置得值可用于组件内部模板使用。" }, "SchemaObjectLoose": { "allOf": [ { "if": { "properties": { "type": { "type": "string", "const": "page" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PageSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "flex" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FlexSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "tpl", "html" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TplSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "remark" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RemarkSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "alert" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AlertSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "audio" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AudioSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "avatar" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AvatarSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "button-group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ButtonGroupSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "button-toolbar" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ButtonToolbarSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "calendar" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CalendarSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "card" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CardSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "cards" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CardsSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "carousel" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CarouselSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "chart" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ChartSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "collapse" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CollapseSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "collapse-group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CollapseGroupSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "color" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ColorSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "container" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ContainerSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "switch-container" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SwitchContainerSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "date", "datetime", "time", "static-date", "static-datetime", "static-time" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "dialog" }, "dialogType": { "type": "string", "const": "confirm" } }, "required": [ "type", "dialogType" ] }, "then": { "$ref": "#/definitions/DialogSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "divider" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DividerSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "drawer" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DrawerSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "dropdown-button" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DropdownButtonSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "each" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/EachSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "grid" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/GridSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "grid-2d" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/Grid2DSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "hbox" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/HBoxSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "icon" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/IconSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "iframe" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/IFrameSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "image", "static-image" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ImageSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "images", "static-images" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ImagesSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "json", "static-json" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/JsonSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "link" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/LinkSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "list", "static-list" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ListSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "map", "mapping" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MappingSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "nav" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/NavSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "operation" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/OperationSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "pagination" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PaginationSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "pagination-wrapper" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PaginationWrapperSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "panel" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PanelSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "plain", "text" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PlainSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "progress" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ProgressSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "qrcode", "qr-code" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/QRCodeSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "search-box" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SearchBoxSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "service" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ServiceSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "sparkline" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SparkLineSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "status" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/StatusSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "spinner" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SpinnerSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "table", "static-table" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TableSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "table2" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TableSchema2", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "tabs" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TabsSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "tasks" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TasksSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "vbox" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/VBoxSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "video" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/VideoSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "wizard" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/WizardSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "wrapper" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/WrapperSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "tooltip-wrapper" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TooltipWrapperSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "form" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FormSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "anchor-nav" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/AnchorNavSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "steps" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/StepsSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "portlet" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PortletSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "timeline" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TimelineSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "control" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FormControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-array" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ArrayControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "button-group-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ButtonGroupControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "chained-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ChainedSelectControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "checkbox" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CheckboxControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "checkboxes" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CheckboxesControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-city" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputCityControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-color" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputColorControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "combo" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ComboControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "condition-builder" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ConditionBuilderControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-date" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-datetime" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateTimeControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-time" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TimeControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-month" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MonthControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-quarter" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/QuarterControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-year" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/YearControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "input-date-range", "input-datetime-range", "input-time-range" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateRangeControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "diff-editor" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DiffControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "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" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/EditorControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "fieldset", "fieldSet" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FieldSetControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-file" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FileControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "formula" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/FormulaControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/GroupControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "hidden" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/HiddenControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "icon-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/IconPickerControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-image" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ImageControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-group" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputGroupControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "list-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ListControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "json-schema-editor" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/JSONSchemaEditorControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-signature" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/InputSignatureSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "location-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/LocationControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "uuid" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/UUIDControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "matrix-checkboxes" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MatrixControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-month-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MonthRangeControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-quarter-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/QuarterRangeControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "nested-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/NestedSelectControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-number" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/NumberControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PickerControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "radios" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RadiosControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "radio" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RadioControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RangeControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-rating" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RatingControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-rich-text" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RichTextControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-repeat" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/RepeatControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "select", "multi-select" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SelectControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-sub-form" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SubFormControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "switch" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SwitchControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "static" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/StaticExactControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-table" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TableControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "tabs-transfer" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TabsTransferControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-tag" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TagControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "enum": [ "input-text", "input-email", "input-url", "input-password", "native-date", "native-time", "native-number" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TextControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "textarea" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TextareaControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "transfer" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TransferControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "transfer-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TransferPickerControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "tabs-transfer-picker" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TabsTransferPickerControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "input-tree" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TreeControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "tree-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/TreeSelectControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "users-select" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/UserSelectControlSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "date-range" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/DateRangeSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "multiline-text" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/MultilineTextSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "password" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/PasswordSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "words" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/WordsSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "type": "string", "const": "slider" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/SliderSchema", "additionalProperties": true } }, { "if": { "properties": { "type": { "enum": [ "action", "button", "submit", "reset" ] } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/ActionSchemaLoose" } }, { "if": { "properties": { "type": { "const": "crud" } }, "required": [ "type" ] }, "then": { "$ref": "#/definitions/CRUDSchema", "additionalProperties": true } } ] }, "ActionSchemaLoose": { "if": { "required": [ "actionType" ] }, "then": { "allOf": [ { "if": { "properties": { "actionType": { "type": "string", "const": "ajax" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/AjaxActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "url" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/UrlActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "link" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/LinkActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "dialog" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/DialogActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "drawer" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/DrawerActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "toast" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/ToastActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "copy" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/CopyActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "reload" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/ReloadActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "const": "email" } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/EmailActionSchema", "additionalProperties": true } }, { "if": { "properties": { "actionType": { "type": "string", "enum": [ "prev", "next", "cancel", "close", "submit", "confirm", "add", "reset", "reset-and-submit" ] } }, "required": [ "actionType" ] }, "then": { "$ref": "#/definitions/OtherActionSchema", "additionalProperties": true } } ] }, "else": { "$ref": "#/definitions/VanillaAction" } } } }