pcpuma_unam_operador/components/botones/BotonEditar.vue
2022-07-27 00:45:53 -05:00

19 lines
509 B
Vue

<template>
<b-field :class="column ? `column ${columnSize}` : ''">
<b-button type="is-primary" @click="editar(row)">
<b-icon icon="pencil" size="is-small" />
</b-button>
</b-field>
</template>
<script>
export default {
props: {
column: { type: Boolean, required: false, default: false },
editar: { type: Function, required: true },
row: { type: Object, required: false, default: () => ({}) },
columnSize: { typeof: String, required: false, default: '' },
},
}
</script>