mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Update to new data format.
This commit is contained in:
parent
ae431d31c2
commit
73c4106f51
@ -1,12 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<span class="tags">
|
<span class='tags'>
|
||||||
<season-tag v-for="season in seasons" :key="SeasonOrder(season)" :season="season"/>
|
<season-tag v-for='season in seasons' :key='season.order' :season='season'/>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SeasonTag from './SeasonTag'
|
import SeasonTag from './SeasonTag'
|
||||||
import SeasonData from '@/assets/game_data/seasons.json'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {SeasonTag},
|
components: {SeasonTag},
|
||||||
@ -14,12 +13,31 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
seasons: {
|
seasons: {
|
||||||
type: Array,
|
type: Array,
|
||||||
required: true
|
required: true,
|
||||||
}
|
default: function () {
|
||||||
},
|
return [
|
||||||
methods: {
|
{
|
||||||
SeasonOrder: function (value) {
|
id: 'spring',
|
||||||
return SeasonData[value].id
|
order: 0,
|
||||||
|
name: 'Spring'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'summer',
|
||||||
|
order: 1,
|
||||||
|
name: 'Summer'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'fall',
|
||||||
|
order: 2,
|
||||||
|
name: 'Fall'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'winter',
|
||||||
|
order: 3,
|
||||||
|
name: 'Winter'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<span class="tags">
|
||||||
|
<skill-tag v-for="skill in skills" :key="skill.order" :skill="skill"/>
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import SkillTag from './SkillTag'
|
||||||
name: "skill-list"
|
|
||||||
|
export default {
|
||||||
|
components: {SkillTag},
|
||||||
|
name: 'skill-list',
|
||||||
|
props: {
|
||||||
|
skills: {
|
||||||
|
type: Array,
|
||||||
|
required: true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user