extract loading in a component
This commit is contained in:
18
src/components/LiteLoading.vue
Normal file
18
src/components/LiteLoading.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div class="lite-loading">
|
||||
<img class="is-loading" src="@/assets/icons/loading.svg" alt="loading..." />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.lite-loading {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.is-loading {
|
||||
animation: spinAround 0.8s infinite linear;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user