Explorar o código

fix(icon): fix g-icon not work

vben %!s(int64=4) %!d(string=hai) anos
pai
achega
f7ec3c931e
Modificáronse 1 ficheiros con 1 adicións e 9 borrados
  1. 1 9
      src/components/Icon/index.tsx

+ 1 - 9
src/components/Icon/index.tsx

@@ -1,7 +1,5 @@
 import './index.less';
 
-import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
-
 import type { PropType } from 'vue';
 import {
   defineComponent,
@@ -16,7 +14,7 @@ import {
 import Iconify from '@purge-icons/generated';
 import { isString } from '/@/utils/is';
 import { propTypes } from '/@/utils/propTypes';
-const Icon = defineComponent({
+export default defineComponent({
   name: 'GIcon',
   props: {
     // icon name
@@ -83,9 +81,3 @@ const Icon = defineComponent({
     );
   },
 });
-
-export default createAsyncComponent(() => {
-  return new Promise((resolve) => {
-    resolve(Icon);
-  });
-});