2021-01-22 04:14:05 +13:00
|
|
|
import Vue from 'vue'
|
2021-01-22 04:01:23 +13:00
|
|
|
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 {
|
2021-01-22 04:14:05 +13:00
|
|
|
vue.component('Neko', Neko)
|
2021-01-22 04:01:23 +13:00
|
|
|
},
|
2021-01-22 04:14:05 +13:00
|
|
|
}
|
2021-01-22 04:01:23 +13:00
|
|
|
|
|
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
|
|
// @ts-ignore
|
2021-01-22 04:14:05 +13:00
|
|
|
window.Vue.use(NekoElements, {})
|
2021-01-22 04:01:23 +13:00
|
|
|
}
|
|
|
|
|
2021-01-22 04:14:05 +13:00
|
|
|
export { Neko }
|
|
|
|
export default NekoElements
|