index.jsx 500 B

123456789101112
  1. import { createFromIconfontCN } from '@ant-design/icons';
  2. import cx from 'classnames';
  3. // const Icon = createFromIconfontCN({
  4. // scriptUrl: '//at.alicdn.com/t/font_3184967_zvedollr9ti.js',
  5. // });
  6. // export default ({ type, className, style = {} }) => {
  7. // return <Icon style={style} className={className} type={`icon-manage${type}`} />;
  8. // };
  9. export default ({ type, className, style = {} }) => {
  10. return <span className={cx('icon', 'iconfont', 'icon-manage' + type)} style={style}></span>;
  11. };