DEBUG dependance
This commit is contained in:
27
components/GenerationFilter.vue
Normal file
27
components/GenerationFilter.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<v-select
|
||||
:items="generations"
|
||||
v-model="internalSelected"
|
||||
label="Filtrer par génération"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['selected'],
|
||||
data() {
|
||||
return {
|
||||
generations: [1, 2, 3, 4, 5, 6, 7, 8, 9],
|
||||
internalSelected: this.selected
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
selected(newVal) {
|
||||
this.internalSelected = newVal
|
||||
},
|
||||
internalSelected(newVal) {
|
||||
this.$emit('change', newVal)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user