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

[Bug] 如何在路由文件中使用本地icon #12598

Closed
liangchaofei opened this issue Jul 25, 2024 · 1 comment
Closed

[Bug] 如何在路由文件中使用本地icon #12598

liangchaofei opened this issue Jul 25, 2024 · 1 comment

Comments

@liangchaofei
Copy link
Contributor

liangchaofei commented Jul 25, 2024

  1. 在路由配置的icon属性中可以看到支持开启icons属性
    https://umijs.org/docs/api/config#%E6%9C%AC%E5%9C%B0-icon-%E4%BD%BF%E7%94%A8
  2. 如何在路由文件中使用本地icon的配置那?
    routes: [
    {
    name: 'analysis',
    icon: 'local:smile',
    path: '/dashboard/analysis',
    component: './dashboard/analysis',
    },
    ]

复现地址:https://github.com/liangchaofei/umi-local-icon-demo

Copy link

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
@github-actions github-actions bot reopened this Jul 25, 2024
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

1 participant