Nuxt/test/fixtures/basic/plugins/register.ts

14 lines
267 B
TypeScript
Raw Normal View History

import { defineComponent, h } from 'vue'
const Spin = defineComponent({
setup (props, { slots }) {
return () => {
return h('div', slots.default?.())
}
}
})
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component('Spin', Spin)
})