define('docs/renderers/Nav.md', function(require, exports, module) { module.exports = { "html": "

Nav

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring"tabs"指定为 Nav 渲染器
classNamestring外层 Dom 的类名
stackedbooleantrue设置成 false 可以以 tabs 的形式展示
sourceApistring动态拉取的 api 地址,也支持${xxx}获取变量
linksArray链接集合
links[x].labelstring名称
links[x].tostring链接地址
links[x].iconstring图标
links[x].activeboolean是否高亮
links[x].activeOn表达式是否高亮的条件,留空将自动分析链接地址
\n

链接集合。

\n
\n
\n

source 返回格式

{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": [\n    {\n      \"label\": \"Nav 1\",\n      \"to\": \"/docs/index\",\n      \"icon\": \"fa fa-user\"\n    },\n\n    {\n      \"label\": \"Nav 2\",\n      \"to\": \"/docs/api\"\n    },\n\n    {\n      \"label\": \"Nav 3\",\n      \"to\": \"/docs/renderers\"\n    }\n  ]\n}\n
\n

或者

\n
{\n  \"status\": 0,\n  \"msg\": \"\",\n  \"data\": {\n    \"links\": [ // 可选字段值:options, items, rows\n      {\n        \"label\": \"Nav 1\",\n        \"to\": \"/docs/index\",\n        \"icon\": \"fa fa-user\"\n      },\n\n      {\n        \"label\": \"Nav 2\",\n        \"to\": \"/docs/api\"\n      },\n\n      {\n        \"label\": \"Nav 3\",\n        \"to\": \"/docs/renderers\"\n      }\n    ]\n  }\n}\n
\n\n\n
文档内容有误?欢迎大家一起来编写,文档地址:/docs/renderers/Nav.md
", "toc": { "label": "目录", "type": "toc", "children": [ { "label": "Nav", "fragment": "nav", "fullPath": "#nav", "level": 2 }, { "label": "source 返回格式", "fragment": "source-%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F", "fullPath": "#source-%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F", "level": 2 } ], "level": 0 } }; });