small update
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
:class="{'is-active': type === activeType}"
|
||||
:key="type"
|
||||
v-for="type in navTypes"
|
||||
@click="$emit('setType', type)"
|
||||
@click="setType(type)"
|
||||
>{{capitalizeFirstLetter(type)}}</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -54,6 +54,10 @@ export default {
|
||||
},
|
||||
capitalizeFirstLetter(string) {
|
||||
return string.charAt(0).toUpperCase() + string.slice(1)
|
||||
},
|
||||
setType(type) {
|
||||
this.toggled = false
|
||||
this.$emit('setType', type)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user