-
-
Save parzibyte/72567245c93767cde85f25cda158bd9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="modal-card" style="width: auto"> | |
<header class="modal-card-head"> | |
<p class="modal-card-title">Cobrar</p> | |
</header> | |
<section class="modal-card-body"> | |
{{ dispositivo }} | |
</section> | |
<footer class="modal-card-foot"> | |
<b-button @click="cobrar()" type="is-success">Ok</b-button> | |
<b-button @click="cerrar()">Cancelar</b-button> | |
</footer> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: ["dispositivo"], | |
methods: { | |
cerrar() { | |
this.$parent.close(); | |
}, | |
cobrar() { | |
const costo = 1; | |
if (costo <= 0) { | |
return; | |
} | |
this.$emit("cobrado", costo); | |
}, | |
}, | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment