amis icon indicating copy to clipboard operation
amis copied to clipboard

Navigation 二级菜单以后不能缩进

Open zimo888 opened this issue 6 years ago • 1 comments

实现场景:

想实现树状显示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"
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

zimo888 avatar Aug 31 '20 09:08 zimo888

样式问题后来修了

nwind avatar Sep 23 '21 09:09 nwind