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

This commit is contained in:
Alejandro Tasistro 2025-08-12 15:13:27 -03:00
parent 6258853ec4
commit d343be346e

View file

@ -1,6 +1,6 @@
<template> <template>
<div class="fixed-right mr-3 ml-3"> <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> <thead>
<tr> <tr>
<th>Producto</th> <th>Producto</th>
@ -36,7 +36,7 @@
<producto-row v-for="producto in productos" :producto="producto" :key="producto.id"/> <producto-row v-for="producto in productos" :producto="producto" :key="producto.id"/>
</tbody> </tbody>
</table> </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. Compa, todavía no agregaste nada a la chismosa.
</p> </p>
</div> </div>