Usando v-if y v-else en vez de v-show #51

Merged
atasistro merged 1 commit from funcion/arreglos-ollas into master 2025-08-12 15:14:59 -03:00

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>