{ "$id": "/schemas/tabs.json#", "$schema": "http://json-schema.org/draft-07/schema#", "allOf": [ { "$ref": "/schemas/tabs.json#/definitions/common" }, { "additionalProperties": false, "dependencies": {}, "patternProperties": { "^(\\$ref|className|tabsClassName|defaultActiveKey|tabs|completeIcon|unCompleteIcon)$": {} }, "properties": { "$schema": { "format": "uri", "type": "string", "description": "绑定 JSON 格式说明,可忽略!" }, "type": { "const": "tabs", "description": "指定为 tabs 选项卡渲染器", "type": "string" } }, "required": ["type"] } ], "definitions": { "common": { "description": "amis Tabs 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers#tabs", "properties": { "$ref": { "$ref": "/schemas/page.json#/definitions/$ref", "description": "引用页面中的定义" }, "className": { "$ref": "/schemas/page.json#/definitions/className", "description": "配置容器 className" }, "completeIcon": { "description": "可以用来设置完成图标,请给 tab 属性添加 complete 属性,或者 completeOn 属性", "type": "string" }, "defaultActiveKey": { "default": 0, "description": "配置默认第几个 tab 展示", "type": "integer" }, "tabs": { "description": "tabs集合", "items": { "$ref": "/schemas/tabs.json#/definitions/tab" }, "type": "array" }, "tabsClassName": { "$ref": "/schemas/page.json#/definitions/className", "description": "配置 tabs 容器 className" }, "unCompleteIcon": { "description": "可以用来设置完成图标,请给 tab 属性添加 complete 属性,或者 completeOn 属性", "type": "string" } } }, "tab": { "description": "Tab", "properties": { "badge": { "description": "徽标", "type": "string" }, "complete": { "description": "标记为完成状态", "type": "boolean" }, "completeOn": { "description": "通过表达式来标记当前 tab 是否完成", "type": "string" }, "hash": { "description": "设置以后将跟url的hash对应", "type": "string" }, "hiddenOn": { "$ref": "/schemas/page.json#/definitions/expression", "description": "通过 JS 表达式来配置当前表单项是否隐藏。" }, "icon": { "description": "按钮图标,请查看 fontAwesome http://fontawesome.io/icons/", "type": "string" }, "reload": { "description": "设置以后内容每次都会重新渲染", "type": "boolean" }, "tab": { "anyOf": [ { "$ref": "/schemas/page.json#/definitions/container" } ] }, "title": { "description": "Tab 标题", "type": "string" }, "toolbar": { "$ref": "/schemas/page.json#/definitions/container", "description": "Tab 的顶部位置内容配置" }, "toolbarClassName": { "$ref": "/schemas/page.json#/definitions/className", "description": "配置容器 className" }, "visibleOn": { "$ref": "/schemas/page.json#/definitions/expression", "description": "通过 JS 表达式来配置当前表单项是否显示" } }, "type": "object" }, "test": { "properties": { "type": { "const": "tabs" } } } }, "description": "amis Tabs 渲染器,格式说明。https://baidu.github.io/amis/docs/renderers#tabs", "type": "object" }