Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

routes中icon自定义图标怎么配置本地的图片? #564

Open
LeoWang1991 opened this issue Jul 14, 2020 · 2 comments
Open

routes中icon自定义图标怎么配置本地的图片? #564

LeoWang1991 opened this issue Jul 14, 2020 · 2 comments

Comments

@LeoWang1991
Copy link

pro-layout版本是6.0

{
path: '/user'
name: 'user',
icon: 'user',
component: './User'
}

icon这里使用antd自带的icon名字或者http-url路径正常使用
想问一下 有没有什么可以引用本地图片地址吗

image

这里好像只定义了 这两种使用方式。
怎么使用本地图片 作为一级菜单栏的图标呢?

@chenshuai2144
Copy link
Collaborator

这个好像不行,我们无法分辨,你有兴趣提个 pr 吗?
支持一下常用的图片后缀

@douxc
Copy link
Contributor

douxc commented Jul 21, 2020

@chenshuai2144 看下这个pr #585 是否可以?

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

No branches or pull requests

3 participants