WIP: initial setup with vite and vitepress, example with button

This commit is contained in:
Alexandr
2022-06-29 19:04:55 +03:00
parent 1a578b1a95
commit 9cd65e332c
27 changed files with 2421 additions and 937 deletions

View File

@@ -1,12 +1 @@
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])
})
}
}
export { default as Button } from './components/Button/Button.vue'