index.ts 440 B

12345678910111213141516
  1. import { VueConstructor } from 'vue'
  2. import { VxeUI } from '@vxe-ui/core'
  3. import { dynamicApp } from '../dynamics'
  4. import VxeIconComponent from './src/icon'
  5. export const VxeIcon = Object.assign({}, VxeIconComponent, {
  6. install (app: VueConstructor) {
  7. app.component(VxeIconComponent.name as string, VxeIconComponent)
  8. }
  9. })
  10. dynamicApp.use(VxeIcon)
  11. VxeUI.component(VxeIconComponent)
  12. export const Icon = VxeIcon
  13. export default VxeIcon