|
@@ -1,7 +1,7 @@
|
|
<template lang="pug">
|
|
<template lang="pug">
|
|
.products-grid
|
|
.products-grid
|
|
template(v-for="product in products")
|
|
template(v-for="product in products")
|
|
- product-card(:data="product")
|
|
|
|
|
|
+ product-card(:data="product" :symbol="symbol")
|
|
product-selector
|
|
product-selector
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -13,6 +13,13 @@
|
|
import { mapGetters, mapActions } from 'vuex'
|
|
import { mapGetters, mapActions } from 'vuex'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ props: {
|
|
|
|
+ symbol: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: '$',
|
|
|
|
+ required: true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
components: {
|
|
components: {
|
|
'product-card': ProductCard,
|
|
'product-card': ProductCard,
|
|
'product-selector': ProductSelector
|
|
'product-selector': ProductSelector
|