mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 23:04:06 +00:00
20 lines
356 B
Vue
20 lines
356 B
Vue
<template>
|
|
<div :class="containerClasses">
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
|
|
import { cn } from '@/utils/tailwindUtil'
|
|
|
|
const { fullHeight = true } = defineProps<{
|
|
fullHeight?: boolean
|
|
}>()
|
|
|
|
const containerClasses = computed(() =>
|
|
cn('flex-1 w-full', fullHeight && 'h-full')
|
|
)
|
|
</script>
|