Showing
1 changed file
with
0 additions
and
23 deletions
src/qx-base-icon/index.js
deleted
100644 → 0
1 | -import { createFromIconfontCN } from '@ant-design/icons'; | |
2 | - | |
3 | -/** | |
4 | - * 使用: | |
5 | - * import QxIcon from '@/packages/qx-icon'; | |
6 | - * <QxIcon type="xxx"/> | |
7 | - * 说明: | |
8 | - * `xxx`为图标唯一标识,`iconfont.cn`对应图标下的“复制代码”所得,建议命名为“icon-xxx_yyy”, | |
9 | - * “icon-”为固定前缀,xxx为模块类型,yyy为图标名。公共类的xxx命名为“comm” | |
10 | - * eg: <QxIcon type="icon-flow_eye"/> | |
11 | - * | |
12 | - * @type {React.FC<IconFontProps<string>>} | |
13 | - */ | |
14 | -const Icon = createFromIconfontCN({ | |
15 | - scriptUrl: [ | |
16 | - 'https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/svg_28096_13.dd706b5c23d28b13b59353264ba38e10.js', // 基础图标 | |
17 | - ], | |
18 | -}); | |
19 | -export const QxBaseIcon = (props) => { | |
20 | - const { type, ...rest } = props || {}; | |
21 | - | |
22 | - return <Icon type={type} {...rest}></Icon>; | |
23 | -}; |