pcpuma_unam_operador/components/botones/BotonEliminar.vue

28 lines
570 B
Vue
Raw Normal View History

2022-07-25 12:49:16 +00:00
<template>
<b-field>
2022-07-25 22:59:36 +00:00
<b-button
type="is-danger"
@click="
$alertsGenericos.imprimirWarning($buefy, msjWarning, llamarEliminar)
"
>
2022-07-25 12:49:16 +00:00
<b-icon icon="delete" size="is-small" />
</b-button>
</b-field>
</template>
<script>
export default {
props: {
eliminar: { type: Function, required: true, default: () => {} },
row: { type: Object, required: true, default: () => ({}) },
2022-07-25 22:59:36 +00:00
msjWarning: { type: String, required: true },
},
methods: {
llamarEliminar() {
2022-07-26 16:49:26 +00:00
this.eliminar(this.row)
2022-07-25 22:59:36 +00:00
},
2022-07-25 12:49:16 +00:00
},
}
</script>