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">
|
|
|
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
|
|
|
|
|
|
|
@Component({})
|
|
|
|
export default class DraggableContainer extends Vue {
|
|
|
|
@Prop({ required: true, type: String }) header!: string;
|
|
|
|
}
|
|
|
|
</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>
|