Created
April 6, 2023 16:52
-
-
Save NandoKstroNet/d084381f7ee38287fd464a66aae2e5d8 to your computer and use it in GitHub Desktop.
Conteúdo template do nosso componente VueJS ProductView em https://codeexperts.com.br
This file contains hidden or 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
<div id="header-content" class="block w-full py-4 border-b border-gray-300"> | |
<h2 class="text-xl font-bold">Produtos</h2> | |
</div> | |
<div class="block w-full border-b pb-10 border-gray-300"> | |
<table class="w-full text-left"> | |
<thead> | |
<tr> | |
<th class="px-6 py-4">#</th> | |
<th class="px-6 py-4">Produto</th> | |
<th class="px-6 py-4">Preço</th> | |
<th class="px-6 py-4">Criado em</th> | |
<th class="px-6 py-4">Ações</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr v-for="product in productsStore.products.data" :key="product.id"> | |
<td class="px-6 py-4">{{ product.id }}</td> | |
<td class="px-6 py-4">{{ product.name }}</td> | |
<td class="px-6 py-4">{{ product.price_float }}</td> | |
<td class="px-6 py-4">{{ product.created_at }}</td> | |
<td class="px-6 py-4"></td> | |
</tr> | |
</tbody> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment