From f7ec3c931e780b2b5d35bf65ea5b4ace26f7c356 Mon Sep 17 00:00:00 2001 From: vben Date: Sat, 12 Dec 2020 23:31:44 +0800 Subject: [PATCH] fix(icon): fix g-icon not work --- src/components/Icon/index.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 8bf070e0..ca8c0e43 100644 --- a/src/components/Icon/index.tsx +++ b/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); - }); -}); -- GitLab