index.ts 468 B

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