19 lines
546 B
Vue
19 lines
546 B
Vue
<template>
|
|
<div class="relative flex h-full min-h-0 min-w-0 w-full max-w-full flex-col overflow-hidden py-2 pr-3">
|
|
<div class="flex shrink-0 min-w-0 items-center justify-between gap-2">
|
|
<div class="truncate font-bold text-[var(--admin-text)]">{{ props.title }}</div>
|
|
<slot name="extra" />
|
|
</div>
|
|
<div class="mt-2 min-h-0 flex-1 overflow-x-hidden overflow-y-auto p-1">
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
interface Prop {
|
|
title: string
|
|
}
|
|
const props = defineProps<Prop>()
|
|
</script>
|