Commit f7ec3c931e780b2b5d35bf65ea5b4ace26f7c356

Authored by vben
1 parent 1ef49e54

fix(icon): fix g-icon not work

Showing 1 changed file with 1 additions and 9 deletions
src/components/Icon/index.tsx
1 1 import './index.less';
2 2  
3   -import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
4   -
5 3 import type { PropType } from 'vue';
6 4 import {
7 5 defineComponent,
... ... @@ -16,7 +14,7 @@ import {
16 14 import Iconify from '@purge-icons/generated';
17 15 import { isString } from '/@/utils/is';
18 16 import { propTypes } from '/@/utils/propTypes';
19   -const Icon = defineComponent({
  17 +export default defineComponent({
20 18 name: 'GIcon',
21 19 props: {
22 20 // icon name
... ... @@ -83,9 +81,3 @@ const Icon = defineComponent({
83 81 );
84 82 },
85 83 });
86   -
87   -export default createAsyncComponent(() => {
88   - return new Promise((resolve) => {
89   - resolve(Icon);
90   - });
91   -});
... ...