element-plus
Version:
A Component Library for Vue3.0
12 lines (8 loc) • 313 B
text/typescript
import { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
import Container from './src/container.vue'
Container.install = (app: App): void => {
app.component(Container.name, Container)
}
const _Container: SFCWithInstall<typeof Container> = Container
export default _Container