add loader

This commit is contained in:
2020-04-11 23:54:38 +02:00
parent 4dbd0e47d7
commit 85d20dfe4d
7 changed files with 54 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
<template>
<div v-if="loading" class="flex-center">
<svg-vue icon="loader" class="loader"/>
</div>
</template>
<script>
export default {
name: "Loader",
data: function () {
return {
loading: false,
}
},
mounted() {
setTimeout(() => this.loading = true, 250)
}
}
</script>