Browse Source
* feature: 1.add iconfont component; 2.menu can add iconfont icon. * fix: 调整菜单引入iconfont的方式为String. 1. 新增IconFont组件,需在组件内配置自己的IconFont图标项目地址; 2. 然后,菜单图标可以引入自己的IconFont图标,图标字符串以icon-开头. * ajust: put the IconFont Script Url into defaultSetting.js * 调整iconfontUrl名称 * fix:注释更新 * 留空iconfontUrlpull/3551/head
committed by
陈帅
3 changed files with 19 additions and 3 deletions
@ -0,0 +1,7 @@ |
|||
import { Icon } from 'antd'; |
|||
import { iconfontUrl as scriptUrl } from '../../defaultSettings'; |
|||
|
|||
// 使用:
|
|||
// import IconFont from '@/components/IconFont';
|
|||
// <IconFont type='icon-demo' className='xxx-xxx' />
|
|||
export default Icon.createFromIconfontCN({ scriptUrl }); |
|||
Loading…
Reference in new issue