2021-01-14 19:17:12 +01:00
|
|
|
<template>
|
2022-04-06 18:02:11 +02:00
|
|
|
<div
|
|
|
|
class="empty-content"
|
|
|
|
:class="{ inline, 'text-center': center }"
|
|
|
|
role="note"
|
|
|
|
>
|
2021-01-14 19:17:12 +01:00
|
|
|
<b-icon :icon="icon" size="is-large" />
|
|
|
|
<h2 class="empty-content__title">
|
|
|
|
<!-- @slot Mandatory title -->
|
|
|
|
<slot />
|
|
|
|
</h2>
|
|
|
|
<p v-show="$slots.desc">
|
|
|
|
<!-- @slot Optional description -->
|
|
|
|
<slot name="desc" />
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
|
|
|
|
|
|
@Component
|
|
|
|
export default class EmptyContent extends Vue {
|
|
|
|
@Prop({ type: String, required: true }) icon!: string;
|
|
|
|
@Prop({ type: Boolean, required: false, default: false }) inline!: boolean;
|
2022-04-06 18:02:11 +02:00
|
|
|
@Prop({ type: Boolean, required: false, default: false }) center!: boolean;
|
2021-01-14 19:17:12 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.empty-content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 20vh;
|
|
|
|
&__title {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
&.inline {
|
|
|
|
margin-top: 5vh;
|
2021-10-25 16:53:46 +02:00
|
|
|
margin-bottom: 2vh;
|
2021-01-14 19:17:12 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|