skillbox/client/src/components/Radiobutton.vue

34 lines
485 B
Vue

<template>
<base-input
:label="label"
:checked="checked"
:item="item"
:type="'radiobutton'"
@input="passOn"
/>
</template>
<script>
import BaseInput from '@/components/ui/BaseInput';
export default {
props: {
label: String,
checked: {
type: Boolean
},
item: Object
},
components: {
BaseInput
},
methods: {
passOn() {
this.$emit('input', ...arguments);
}
}
};
</script>