Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何自定义左侧菜单栏图标 #325

Open
zhouyangdong opened this issue Nov 16, 2022 · 2 comments
Open

如何自定义左侧菜单栏图标 #325

zhouyangdong opened this issue Nov 16, 2022 · 2 comments

Comments

@zhouyangdong
Copy link

项目中需要自定义左侧菜单栏的图标,从阿里图标库引入

@Jitianpeng
Copy link

左侧菜单组件是个函数式组件,渲染逻辑可以去components文件下的menu文件里的menu.js文件里看看,里面有renderIcon方法

@Jitianpeng
Copy link

可以改为渲染一个i标签,动态设置class,然后在router.mapper.js文件里定义路由的时候给需要添加icon的路由 meta属性下添加 icon字段

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants