33 lines
782 B
Vue
33 lines
782 B
Vue
<template>
|
|
<b-field :class="column ? 'column' : ''">
|
|
<b-button
|
|
type="is-link"
|
|
:disabled="disabled"
|
|
@click="
|
|
$alertsGenericos.imprimirWarning($buefy, msjWarning, llamarGuardar)
|
|
"
|
|
expanded
|
|
>
|
|
Guardar
|
|
</b-button>
|
|
</b-field>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
column: { type: Boolean, required: false, default: false },
|
|
disabled: { type: Boolean, required: false, default: true },
|
|
guardar: { type: Function, required: true },
|
|
row: { type: Object, required: false, default: () => ({}) },
|
|
columnSize: { typeof: String, required: false, default: '' },
|
|
msjWarning: { type: String, required: true },
|
|
},
|
|
methods: {
|
|
llamarGuardar() {
|
|
this.guardar(this.row)
|
|
},
|
|
},
|
|
}
|
|
</script>
|