index.ts 513 B

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