mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
19 lines
307 B
Vue
19 lines
307 B
Vue
|
<template>
|
||
|
<Component :is="tag" class="relative w-full d-container-content">
|
||
|
<slot />
|
||
|
</Component>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import { defineComponent } from '@nuxtjs/composition-api'
|
||
|
|
||
|
export default defineComponent({
|
||
|
props: {
|
||
|
tag: {
|
||
|
type: String,
|
||
|
default: 'div'
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
</script>
|