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
507 B
Vue

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