17 lines
		
	
	
		
			462 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			462 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { App } from 'vue'
 | 
						|
import { VxeUI } from '@vxe-ui/core'
 | 
						|
import VxeSwitchComponent from './src/switch'
 | 
						|
import { dynamicApp } from '../dynamics'
 | 
						|
 | 
						|
export const VxeSwitch = Object.assign(VxeSwitchComponent, {
 | 
						|
  install: function (app: App) {
 | 
						|
    app.component(VxeSwitchComponent.name as string, VxeSwitchComponent)
 | 
						|
  }
 | 
						|
})
 | 
						|
 | 
						|
dynamicApp.use(VxeSwitch)
 | 
						|
VxeUI.component(VxeSwitchComponent)
 | 
						|
 | 
						|
export const Switch = VxeSwitch
 | 
						|
export default VxeSwitch
 |