33 lines
537 B
Vue
33 lines
537 B
Vue
<template>
|
|
<base-input :label="label"
|
|
:checked="checked"
|
|
:item="item"
|
|
v-on:input="passOn"
|
|
:type="'checkbox'"
|
|
></base-input>
|
|
</template>
|
|
|
|
<script>
|
|
import BaseInput from '@/components/inputs/BaseInput';
|
|
|
|
export default {
|
|
props: {
|
|
label: String,
|
|
checked: {
|
|
type: Boolean
|
|
},
|
|
item: Object
|
|
},
|
|
|
|
components: {
|
|
BaseInput
|
|
},
|
|
|
|
methods: {
|
|
passOn() {
|
|
this.$emit('input', ...arguments);
|
|
}
|
|
}
|
|
}
|
|
</script>
|