pcpuma_unam_operador/components/botones/BotonGuardar.vue

33 lines
782 B
Vue
Raw Normal View History

<template>
2022-07-26 19:31:57 +00:00
<b-field :class="column ? 'column' : ''">
<b-button
type="is-link"
2022-07-26 19:31:57 +00:00
:disabled="disabled"
@click="
$alertsGenericos.imprimirWarning($buefy, msjWarning, llamarGuardar)
"
expanded
>
Guardar
</b-button>
</b-field>
</template>
<script>
export default {
props: {
2022-07-26 19:31:57 +00:00
column: { type: Boolean, required: false, default: false },
disabled: { type: Boolean, required: false, default: true },
guardar: { type: Function, required: true },
2022-07-26 19:31:57 +00:00
row: { type: Object, required: false, default: () => ({}) },
columnSize: { typeof: String, required: false, default: '' },
msjWarning: { type: String, required: true },
},
methods: {
llamarGuardar() {
2022-07-26 16:49:26 +00:00
this.guardar(this.row)
},
},
}
</script>