feat: add product to cart from main page
This commit is contained in:
parent
7516e0bc99
commit
e72f013d84
7 changed files with 14 additions and 53 deletions
|
|
@ -28,7 +28,7 @@
|
|||
<q-infinite-scroll v-if="showProducts" @load="onLoad" :offset="250">
|
||||
<div class="row q-col-gutter-md">
|
||||
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3" v-for="(item, idx) in partialProducts" :key="idx">
|
||||
<product-card :product="item" @change-page="changePageM"></product-card>
|
||||
<product-card :product="item" @change-page="changePageM" @add-to-cart="addToCart"></product-card>
|
||||
</div>
|
||||
</div>
|
||||
<template v-if="lastProductIndex < filteredProducts.length" v-slot:loading>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue