Skip to content

Commit

Permalink
fix(icon): fix g-icon not work
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Dec 12, 2020
1 parent 1ef49e5 commit f7ec3c9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/Icon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import './index.less';

import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';

import type { PropType } from 'vue';
import {
defineComponent,
Expand All @@ -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
Expand Down Expand Up @@ -83,9 +81,3 @@ const Icon = defineComponent({
);
},
});

export default createAsyncComponent(() => {
return new Promise((resolve) => {
resolve(Icon);
});
});

0 comments on commit f7ec3c9

Please sign in to comment.