mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
23 lines
472 B
TypeScript
23 lines
472 B
TypeScript
import Vue from 'vue'
|
|
import Neko from './component/main.vue'
|
|
|
|
/**
|
|
* Fügt eine "install" function hinzu
|
|
*
|
|
* Weitere Infos:
|
|
* https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html#Packaging-Components-for-npm
|
|
*/
|
|
const NekoElements = {
|
|
install(vue: typeof Vue): void {
|
|
vue.component('Neko', Neko)
|
|
},
|
|
}
|
|
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
// @ts-ignore
|
|
window.Vue.use(NekoElements, {})
|
|
}
|
|
|
|
export { Neko }
|
|
export default NekoElements
|