pcpuma_unam_operador/components/inputs/InputSwitch.vue

25 lines
505 B
Vue
Raw Normal View History

2022-09-05 03:59:49 +00:00
<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>