WIP: initial setup and more
This commit is contained in:
12
src/index.ts
Normal file
12
src/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { App } from 'vue'
|
||||
import * as components from './components'
|
||||
|
||||
export type ObjectKey = keyof typeof components;
|
||||
|
||||
export default {
|
||||
install(app: App, options: any) {
|
||||
Object.keys(components).forEach(component => {
|
||||
app.component(component, components[component as ObjectKey])
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user