add loader
This commit is contained in:
19
resources/js/components/Loader.vue
Normal file
19
resources/js/components/Loader.vue
Normal 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>
|
||||
Reference in New Issue
Block a user