amis/schemas/tabs.json

136 lines
5.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"$id": "https://houtai.baidu.com/v2/schemas/tabs.json#",
"$schema": "http://json-schema.org/draft-07/schema#",
"allOf": [
{
"$ref": "https://houtai.baidu.com/v2/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": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
"description": "引用页面中的定义"
},
"className": {
"$ref": "https://houtai.baidu.com/v2/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": "https://houtai.baidu.com/v2/schemas/tabs.json#/definitions/tab"
},
"type": "array"
},
"tabsClassName": {
"$ref": "https://houtai.baidu.com/v2/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": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/expression",
"description": "通过 JS 表达式来配置当前表单项是否隐藏。"
},
"icon": {
"description": "按钮图标,请查看 fontAwesome http://fontawesome.io/icons/",
"type": "string"
},
"reload": {
"description": "设置以后内容每次都会重新渲染",
"type": "boolean"
},
"tab": {
"anyOf": [
{
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container"
}
]
},
"title": {
"description": "Tab 标题",
"type": "string"
},
"toolbar": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
"description": "Tab 的顶部位置内容配置"
},
"toolbarClassName": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
"description": "配置容器 className"
},
"visibleOn": {
"$ref": "https://houtai.baidu.com/v2/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"
}