gctGenerator/site/.vuepress/components/FormatSelect.vue
Matteias Collet 79fab84fae minor cleanup
2022-01-16 18:17:07 +00:00

24 lines
471 B
Vue

<template>
<SelectComponent :options="options" :selectedValue="selectedValue" :onChange="onChange" />
</template>
<script>
import downloadFormats from '../data/downloadFormats.json';
export default {
props: {
selectedValue: { type: String },
onChange: { type: Function },
},
data() {
return {
options: downloadFormats.map((v) => ({
value: v.target,
label: v.i18nKey,
})),
};
},
};
</script>
<style scoped></style>