pcpuma_unam_operador/components/botones/BotonEditar.vue
2022-07-25 19:18:10 -05:00

29 lines
554 B
Vue

<template>
<b-field>
<b-button
type="is-primary"
@click="
$alertsGenericos.imprimirWarning($buefy, msjWarning, llamarEditar)
"
expanded
>
<b-icon icon="pencil" size="is-small" />
</b-button>
</b-field>
</template>
<script>
export default {
props: {
editar: { type: Function, required: true },
row: { type: Object, required: true, default: () => ({}) },
msjWarning: { type: String, required: true },
},
methods: {
llamarEditar() {
this.editar(row)
},
},
}
</script>