This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/components/Loading.vue

25 lines
503 B
Vue

<template>
<section class="w-100">
<div v-if="isLoaded">
<slot/>
</div>
<p class="text-center" v-if="!isLoaded">
<Spinner :size="size"/>
</p>
</section>
</template>
<script>
export default {
props: {
value: { required: true },
size: {'default': '5rem'},
},
computed: {
isLoaded() {
return this.value !== undefined;
},
},
};
</script>