提交 f7ec3c93 编写于 作者: V vben

fix(icon): fix g-icon not work

上级 1ef49e54
import './index.less'; import './index.less';
import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { import {
defineComponent, defineComponent,
...@@ -16,7 +14,7 @@ import { ...@@ -16,7 +14,7 @@ import {
import Iconify from '@purge-icons/generated'; import Iconify from '@purge-icons/generated';
import { isString } from '/@/utils/is'; import { isString } from '/@/utils/is';
import { propTypes } from '/@/utils/propTypes'; import { propTypes } from '/@/utils/propTypes';
const Icon = defineComponent({ export default defineComponent({
name: 'GIcon', name: 'GIcon',
props: { props: {
// icon name // icon name
...@@ -83,9 +81,3 @@ const Icon = defineComponent({ ...@@ -83,9 +81,3 @@ const Icon = defineComponent({
); );
}, },
}); });
export default createAsyncComponent(() => {
return new Promise((resolve) => {
resolve(Icon);
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册