1、注册阿里巴巴登录,创建项目
2、搜索图片资源,加入购物车,点击购物车,添加图标到项目中。
3、生成symbol连接
4、antd 4.0以上使用
导入import{createFromIconfontCN}from'@ant-design/icons';
创建IconFont
exportconstIconFont=createFromIconfontCN({
scriptUrl:"///t/***********.js"
});
antd4.0一下版本
import { Icon } from 'antd';
export const IconFont = Icon.createFromIconfontCN({
scriptUrl: '///t/***********.js', // 在 上生成
});
在menu中引入,使用
在menuConfig中直接使用