Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2021 18:05
What would you like to do?
<div class="modal-card" style="width: auto">
<header class="modal-card-head">
<p class="modal-card-title">Cobrar</p>
<section class="modal-card-body">
{{ dispositivo }}
<footer class="modal-card-foot">
<b-button @click="cobrar()" type="is-success">Ok</b-button>
<b-button @click="cerrar()">Cancelar</b-button>
export default {
props: ["dispositivo"],
methods: {
cerrar() {
cobrar() {
const costo = 1;
if (costo <= 0) {
this.$emit("cobrado", costo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment