frequi_origin/src/components/layout/DraggableContainer.vue

30 lines
605 B
Vue
Raw Normal View History

2020-08-31 15:47:26 +00:00
<template>
<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>