mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
22 lines
511 B
Vue
22 lines
511 B
Vue
<template>
|
|
<TabPanel :value="props.value" class="h-full w-full" :class="props.class">
|
|
<div class="flex flex-col h-full w-full gap-2">
|
|
<slot name="header" />
|
|
<ScrollPanel class="flex-grow h-0 pr-2">
|
|
<slot />
|
|
</ScrollPanel>
|
|
<slot name="footer" />
|
|
</div>
|
|
</TabPanel>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import TabPanel from 'primevue/tabpanel'
|
|
import ScrollPanel from 'primevue/scrollpanel'
|
|
|
|
const props = defineProps<{
|
|
value: string
|
|
class?: string
|
|
}>()
|
|
</script>
|