【发布时间】:2021-10-04 05:50:31
【问题描述】:
我已关注Dynamic nested topnav menu 创建导航栏。
在我尝试通过将 DevFestFL 的代码 iconName: 'close' 更改为 iconName: 'arrow_circle_down' 来将图标添加到父菜单之前,它一直运行良好。
图标无法显示,但在其子级上可以正常工作。
{
displayName: 'DevFestFL',
iconName: 'arrow_circle_down',
children: [
{
displayName: 'Speakers',
iconName: 'arrow_circle_down',
children: [
{
displayName: 'Michael Prentice',
iconName: 'person',
route: 'michael-prentice',
children: [
{
displayName: 'Create Enterprise UIs',
iconName: 'star_rate',
route: 'material-design',
},
],
},
谢谢 Agustin L. Lacuara
我已经安装了这个包,我已经尝试过 Angular Material Icons。
displayName: 'Reports',
iconName: 'arrow_downward',
children: [
{
displayName: 'Content History Report',
iconName: 'arrow_downward',
route: 'reports/content-history'
},
{
displayName: 'Drive History Report',
iconName: 'article',
route: 'reports/drive-history'
}
]
但是,它只适用于子菜单。
【问题讨论】:
标签: html css angular navigation icons