2020-06-28 06:33:20 +09:00
|
|
|
<template>
|
|
|
|
<SelectComponent
|
|
|
|
placeholder="Choose Version.."
|
2020-06-28 10:45:44 +09:00
|
|
|
:selectedValue="selectedValue"
|
2020-06-28 06:33:20 +09:00
|
|
|
:options="options"
|
|
|
|
:onChange="onChange"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import SelectComponent from "./SelectComponent";
|
|
|
|
|
|
|
|
import gameVersions from "../data/gameVersions.json";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
selectedValue: { type: String },
|
|
|
|
onChange: { type: Function },
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
options: gameVersions.map((v) => ({
|
|
|
|
value: v.identifier,
|
|
|
|
label: v.name,
|
|
|
|
})),
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped></style>
|