mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Add season list
This commit is contained in:
parent
899a528f8a
commit
9710464090
@ -1,10 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<span class="tags">
|
||||||
|
<season-tag v-for="season in seasons" :key="SeasonOrder(season)" :season="season"/>
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import SeasonTag from './SeasonTag'
|
||||||
|
import SeasonData from '@/assets/game_data/seasons.json'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "season-list"
|
components: {SeasonTag},
|
||||||
|
name: 'season-list',
|
||||||
|
props: {
|
||||||
|
seasons: {
|
||||||
|
type: Array,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
SeasonOrder: function (value) {
|
||||||
|
return SeasonData[value].id
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user