index.ts 468 B

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