mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-02 02:51:40 +00:00
45 lines
842 B
Vue
45 lines
842 B
Vue
<template>
|
|
<div>
|
|
<v-radio-group
|
|
v-model="localValue"
|
|
row
|
|
dark
|
|
:mandatory="true"
|
|
>
|
|
<v-radio
|
|
v-for="(name,index) in list"
|
|
:key="index"
|
|
color="#ffd843"
|
|
:label="name"
|
|
:value="index"
|
|
:disabled="disabled"
|
|
/>
|
|
</v-radio-group>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Radio',
|
|
// eslint-disable-next-line vue/require-prop-types
|
|
props: ['value', 'list', 'disabled'],
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
localValue: {
|
|
get() {
|
|
return this.value;
|
|
},
|
|
set(value) {
|
|
this.$emit('input', value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="" scoped>
|
|
|
|
</style>
|