Merge pull request 'Usando v-if y v-else en vez de v-show' (#51) from funcion/arreglos-ollas into master

Reviewed-on: #51
This commit is contained in:
Alejandro Tasistro 2025-08-12 15:14:58 -03:00
commit 965a9c7cfc

View file

@ -1,6 +1,6 @@
<template>
<div class="fixed-right mr-3 ml-3">
<table v-show="mostrar_tabla" class="table is-striped is-bordered tabla-chismosa is-narrow">
<table v-if="mostrar_tabla" class="table is-striped is-bordered tabla-chismosa is-narrow">
<thead>
<tr>
<th>Producto</th>
@ -36,7 +36,7 @@
<producto-row v-for="producto in productos" :producto="producto" :key="producto.id"/>
</tbody>
</table>
<p class="has-text-centered" v-show="!mostrar_tabla">
<p class="has-text-centered" v-else>
Compa, todavía no agregaste nada a la chismosa.
</p>
</div>