2020-08-31 15:47:26 +00:00
|
|
|
<template>
|
2021-02-10 09:00:55 +00:00
|
|
|
<div class="card h-100 w-100 overflow-auto">
|
2020-08-31 15:47:26 +00:00
|
|
|
<div class="drag-header card-header">
|
|
|
|
{{ header }}
|
|
|
|
</div>
|
|
|
|
<div class="card-body h-100 w-100">
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2022-07-07 18:44:19 +00:00
|
|
|
import { defineComponent } from 'vue';
|
2020-08-31 15:47:26 +00:00
|
|
|
|
2022-04-17 07:26:58 +00:00
|
|
|
export default defineComponent({
|
|
|
|
name: 'DraggableContainer',
|
|
|
|
props: {
|
|
|
|
header: { required: true, type: String },
|
|
|
|
},
|
|
|
|
});
|
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>
|