gctGenerator/site/.vuepress/components/FormatSelect.vue
2020-07-10 00:57:16 +02:00

28 lines
543 B
Vue

<template>
<SelectComponent :options="options" :selectedValue="selectedValue" :onChange="onChange" />
</template>
<script>
// Components
import SelectComponent from './SelectComponent';
// Data
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>