pcpuma_unam_operador/components/inputs/InputSwitch.vue
2022-09-04 22:59:49 -05:00

25 lines
505 B
Vue

<template>
<b-field class="column mb-0 pb-0" :class="columnSize" :label="label">
<b-switch type="is-info" v-model="cancelado" />
</b-field>
</template>
<script>
export default {
props: {
columnSize: { typeof: String, required: false, default: '' },
label: { typeof: String, required: true, default: '' },
},
data: () => {
return { cancelado: false }
},
watch: {
cancelado() {
this.$emit('cancelado', this.cancelado)
},
},
}
</script>
<style scoped></style>