mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
14 lines
268 B
TypeScript
14 lines
268 B
TypeScript
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)
|
|
})
|