amis
amis copied to clipboard
Navigation 二级菜单以后不能缩进
实现场景:
想实现树状显示Navigation
存在的问题:
nav组件树形显示的时候,二级菜单以后不能收缩,样式不缩进。
当前方案:
{
"type": "wrapper",
"size": "xs",
"className": "",
"body": {
"type": "nav",
"stacked": true,
"links": [
{
"label": "页面",
"to": "/api/1",
"children": [
{
"label": "页面1-1",
"to": "/api/1-1",
"children":[
{
"label": "页面1-1-1",
"to": "/api/1-1-1",
"children":[
{
"label": "页面-1-1-1",
"to": "/api/1-1-1-1"
},
{
"label": "页面-1-1-2",
"to": "/api/1-1-1-2"
}
]
}
]
}
]
}
]
}
}
样式问题后来修了