element-plus/packages/components/switch/index.ts

14 lines
325 B
TypeScript
Raw Normal View History

import Switch from './src/index.vue'
2020-10-29 17:28:26 +08:00
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
Switch.install = (app: App): void => {
app.component(Switch.name, Switch)
}
2020-10-29 17:28:26 +08:00
const _Switch = Switch as SFCWithInstall<typeof Switch>
export default _Switch
export const ElSwitch = _Switch