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