fix(icon): fix g-icon not work
| | |
| | | import './index.less'; |
| | | |
| | | import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent'; |
| | | |
| | | import type { PropType } from 'vue'; |
| | | import { |
| | | defineComponent, |
| | |
| | | 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 |
| | |
| | | <div ref={elRef} class={[attrs.class, 'app-iconify anticon']} style={unref(wrapStyleRef)} /> |
| | | ); |
| | | }, |
| | | }); |
| | | |
| | | export default createAsyncComponent(() => { |
| | | return new Promise((resolve) => { |
| | | resolve(Icon); |
| | | }); |
| | | }); |