mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-12 15:27:13 +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>
|