菜单
在 0.10.3 版本中,菜单的结构如下。返回数据结构需要有两个节点items
与setting
。
json
{
"items": [
{
"icon": "icon-activity",
"name": "图表",
"path": "/x/Chart/dashboard"
},
{
"icon": "icon-book",
"name": "表格",
"path": "/x/Table/pet",
"children": [
{
"icon": "icon-book",
"name": "宠物列表",
"path": "/x/Table/pet"
}
]
},
{
"icon": "icon-clipboard",
"name": "表单",
"path": "/x/Form/pet/0/edit",
"children": [
{
"icon": "icon-clipboard",
"name": "创建宠物",
"path": "/x/Form/pet/0/edit"
}
]
}
],
"setting": [
{
"icon": "icon-settings",
"name": "设置",
"path": "/setting",
"children": [
{
"name": "系统设置",
"path": "/setting"
}
]
}
]
}