Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | 1x 1x 2x 1x | <template> <div class="p-3"> <p class="text-uppercase">best sellers products</p> <div class="row justify-content-center w-100 m-0"> <ProductCard class="col-md-6 col-12" v-for="product in best_sellers" :key="product.id" :product="product" /> </div> </div> </template> <script> import { mapGetters } from "vuex"; import ProductCard from "~/components/Admin/common/ProductCard.vue"; export default { name: "BestSellersProducts", components: { ProductCard }, computed: { ...mapGetters({ best_sellers: "best_sellers/best_sellers", }), }, }; </script> <style scoped> .col-6 { flex: 0 0 48%; max-width: 48%; } </style> |