32 lines
572 B
Vue
32 lines
572 B
Vue
<template>
|
|
<ul id="months">
|
|
<li v-for="month in months" :key="month.date">
|
|
<month-presentation :month=month></month-presentation>
|
|
</li>
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
import MonthPresentation from "./MonthPresentation"
|
|
export default {
|
|
name: 'Months',
|
|
components: {
|
|
MonthPresentation: MonthPresentation
|
|
},
|
|
props: {
|
|
},
|
|
computed: {
|
|
...mapGetters({
|
|
months: "travail/Months",
|
|
})
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
<style scoped>
|
|
|
|
</style>
|