2020-08-31 15:47:26 +00:00
|
|
|
<template>
|
2022-12-24 09:06:06 +00:00
|
|
|
<div class="card h-100 w-100">
|
2020-08-31 15:47:26 +00:00
|
|
|
<div class="drag-header card-header">
|
2023-02-27 19:09:40 +00:00
|
|
|
<slot name="header">
|
|
|
|
{{ header }}
|
|
|
|
</slot>
|
2020-08-31 15:47:26 +00:00
|
|
|
</div>
|
2022-12-24 09:06:06 +00:00
|
|
|
<div class="card-body h-100 w-100 overflow-auto">
|
2020-08-31 15:47:26 +00:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-02-27 19:09:40 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
defineProps({
|
2023-02-27 19:19:10 +00:00
|
|
|
header: { required: false, type: String, default: '' },
|
2022-04-17 07:26:58 +00:00
|
|
|
});
|
2020-08-31 15:47:26 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.card-header {
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
}
|
|
|
|
.card-body {
|
2020-08-31 18:01:21 +00:00
|
|
|
/* Padding should be controled by the contained element */
|
|
|
|
padding: 0;
|
2020-08-31 15:47:26 +00:00
|
|
|
}
|
|
|
|
</style>
|