ng-alain / ng-alain

NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
https://ng-alain.com
MIT License
4.53k stars 1.16k forks source link

请教是否可以在系统菜单中使用svg文件做图标的问题? #2391

Closed unix3000 closed 1 year ago

unix3000 commented 1 year ago

What problem does this feature solve?

在ng-alain中静态加载@ant-design/icons-angular/icons的图标,但图标比较少,需要使用到svg格式的图标问题,那么我需要怎么弄?

What does the proposed API look like?

文档在详细一些。

alain-bot[bot] commented 1 year ago

Translation of this issue:

Can you use the SVG file in the system menu as the problem of icon?

What PROBLEM DOES This Feature Solve?

In Ng-ALAIN, load icons icons of@ANT-Design/icons-Agular/icons staticly, but there are fewer icons. I need to use the icon in SVG format. So how do I need to do it?

What does the proposed api look like?

The document is in detail.

cipchk commented 1 year ago

指定 type 参数为 svg 即可 https://github.com/ng-alain/delon/blob/master/packages/theme/src/services/menu/interface.ts#L12C5-L14