You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.7 KiB

10 months ago
9 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. import { defineComponent, h } from 'vue';
  2. import { createFromIconfontCN } from '@ant-design/icons-vue';
  3. function createIconComponent(iconType: string) {
  4. const IconComponent = createFromIconfontCN({
  5. scriptUrl: '//at.alicdn.com/t/c/font_4513281_r2toi9mpbha.js', // 在 iconfont.cn 上生成
  6. });
  7. return defineComponent({
  8. setup() {
  9. return () => h(IconComponent, { type: iconType });
  10. },
  11. });
  12. }
  13. const TitleOutLined = createIconComponent('icon-xiongmaochizhuye');
  14. const BlogOutLined = createIconComponent('icon-blog');
  15. const SystemOutLined = createIconComponent('icon-system');
  16. const PhotoOutLined = createIconComponent('icon-photo');
  17. const FileOutLined = createIconComponent('icon-file');
  18. const DiaryOutLined = createIconComponent('icon-diary');
  19. const CommentOutLined = createIconComponent('icon-comment');
  20. const TypeOutLined = createIconComponent('icon-type');
  21. const MusicLined = createIconComponent('icon-musicfill');
  22. const EmailLined = createIconComponent('icon-youxiang');
  23. const GitHubLined = createIconComponent('icon-github');
  24. const QQLined = createIconComponent('icon-QQ');
  25. const WechatLined = createIconComponent('icon-wechat-fill');
  26. const GravatarLined = createIconComponent('icon-brand-gravatar');
  27. const RiLiLined = createIconComponent('icon-rili');
  28. const YueDuLined = createIconComponent('icon-yuedu');
  29. const YanJingLined = createIconComponent('icon-yanjing');
  30. const XieZiLined = createIconComponent('icon-xiezi');
  31. export {
  32. TitleOutLined,
  33. BlogOutLined,
  34. SystemOutLined,
  35. PhotoOutLined,
  36. FileOutLined,
  37. DiaryOutLined,
  38. CommentOutLined,
  39. TypeOutLined,
  40. MusicLined,
  41. EmailLined,
  42. GitHubLined,
  43. QQLined,
  44. WechatLined,
  45. GravatarLined,
  46. RiLiLined,
  47. YueDuLined,
  48. YanJingLined,
  49. XieZiLined
  50. }