added loader fade
This commit is contained in:
parent
26338792b5
commit
fb9e7091b4
15
src/App.vue
15
src/App.vue
@ -127,8 +127,10 @@ export default {
|
|||||||
|
|
||||||
<div id="main-content">
|
<div id="main-content">
|
||||||
<MapConcernements>
|
<MapConcernements>
|
||||||
<div class="loading" v-if="mapitems.length === 0">Chargement</div>
|
<transition name="fade">
|
||||||
<template v-else>
|
<div class="loading" v-if="mapitems.length === 0">Chargement</div>
|
||||||
|
</transition>
|
||||||
|
<template v-if="mapitems.length > 0">
|
||||||
<template v-for="(mapitem,index) in mapitems">
|
<template v-for="(mapitem,index) in mapitems">
|
||||||
<ConcernementMapItem
|
<ConcernementMapItem
|
||||||
v-if="mapitem.concernement.visible && ((map_mode === 'superposition' && mapitem.clone) || !mapitem.clone)"
|
v-if="mapitem.concernement.visible && ((map_mode === 'superposition' && mapitem.clone) || !mapitem.clone)"
|
||||||
@ -146,4 +148,13 @@ export default {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.fade-enter-active,
|
||||||
|
.fade-leave-active {
|
||||||
|
transition: opacity 1s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-enter-from,
|
||||||
|
.fade-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user