mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
14 lines
267 B
TypeScript
14 lines
267 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)
|
||
|
})
|