Usando v-if y v-else en vez de v-show #51
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue