add loader

This commit is contained in:
Romain committed 2020-04-11 23:54:38 +02:00
1 parent 4dbd0e47d7
commit 85d20dfe4d
7 files changed
+54 -5

No files matched your search

+19
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>