mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 11:26:59 +00:00
19 lines
259 B
Vue
19 lines
259 B
Vue
<script setup lang="ts">
|
|
interface Props {
|
|
wrap?: boolean
|
|
as?: string
|
|
}
|
|
|
|
withDefaults(defineProps<Props>(), {
|
|
wrap: true,
|
|
as: 'div',
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<component :is="as" v-if="wrap">
|
|
<slot />
|
|
</component>
|
|
<slot v-else />
|
|
</template>
|