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 import './index.less'; 1 import './index.less';
2 2
3 -import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';  
4 -  
5 import type { PropType } from 'vue'; 3 import type { PropType } from 'vue';
6 import { 4 import {
7 defineComponent, 5 defineComponent,
@@ -16,7 +14,7 @@ import { @@ -16,7 +14,7 @@ import {
16 import Iconify from '@purge-icons/generated'; 14 import Iconify from '@purge-icons/generated';
17 import { isString } from '/@/utils/is'; 15 import { isString } from '/@/utils/is';
18 import { propTypes } from '/@/utils/propTypes'; 16 import { propTypes } from '/@/utils/propTypes';
19 -const Icon = defineComponent({ 17 +export default defineComponent({
20 name: 'GIcon', 18 name: 'GIcon',
21 props: { 19 props: {
22 // icon name 20 // icon name
@@ -83,9 +81,3 @@ const Icon = defineComponent({ @@ -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 -});