add loader
This commit is contained in:
1 parent
4dbd0e47d7
commit
85d20dfe4d
7 files changed
+54
-5
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user