vben
2020-12-12 f7ec3c931e780b2b5d35bf65ea5b4ace26f7c356
fix(icon): fix g-icon not work
1个文件已修改
10 ■■■■ 已修改文件
src/components/Icon/index.tsx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 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
@@ -82,10 +80,4 @@
      <div ref={elRef} class={[attrs.class, 'app-iconify anticon']} style={unref(wrapStyleRef)} />
    );
  },
});
export default createAsyncComponent(() => {
  return new Promise((resolve) => {
    resolve(Icon);
  });
});