mirror of
https://github.com/kihashi/stardew_community_checklist.git
synced 2025-10-19 08:03:17 +00:00
Change color to remove varied colors.
This commit is contained in:
parent
aea235eec9
commit
a454e85fe5
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<span class="tag" v-bind:class="seasonColor">
|
<span class="tag is-primary">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<spring-icon v-if="season === 'spring'"/>
|
<spring-icon v-if="season === 'spring'"/>
|
||||||
<summer-icon v-if="season === 'summer'"/>
|
<summer-icon v-if="season === 'summer'"/>
|
||||||
@ -23,21 +23,7 @@ export default {
|
|||||||
required: true,
|
required: true,
|
||||||
default: 'spring',
|
default: 'spring',
|
||||||
validator: function (value) {
|
validator: function (value) {
|
||||||
return value.toLowerCase() in Seasons
|
return value in Seasons
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
seasonColor: function () {
|
|
||||||
switch (this.season) {
|
|
||||||
case 'spring':
|
|
||||||
return 'is-success'
|
|
||||||
case 'summer':
|
|
||||||
return 'is-warning'
|
|
||||||
case 'fall':
|
|
||||||
return 'is-danger'
|
|
||||||
case 'winter':
|
|
||||||
return 'is-info'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user