|
@@ -1,22 +1,30 @@
|
|
|
<template lang="pug">
|
|
|
.pos
|
|
|
.products-container
|
|
|
- <products-searcher />
|
|
|
- <products-grid />
|
|
|
+ products-searcher
|
|
|
+ products-grid
|
|
|
.cart-container
|
|
|
- <cart />
|
|
|
+ cart-total
|
|
|
+ cart-items
|
|
|
+ cart-options
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import ProductsSearcher from '@/components/ProductsSearcher'
|
|
|
import ProductsGrid from '@/components/ProductsGrid'
|
|
|
- import Cart from '@/components/Cart'
|
|
|
+ import CartTotal from '@/components/CartTotal'
|
|
|
+ import CartItems from '@/components/CartItems'
|
|
|
+ import CartItem from '@/components/CartItem'
|
|
|
+ import CartOptions from '@/components/CartOptions'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
'products-searcher': ProductsSearcher,
|
|
|
'products-grid': ProductsGrid,
|
|
|
- 'cart': Cart
|
|
|
+ 'cart-total': CartTotal,
|
|
|
+ 'cart-items': CartItems,
|
|
|
+ 'cart-item': CartItem,
|
|
|
+ 'cart-options': CartOptions
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -33,11 +41,14 @@
|
|
|
width: calc(100% - 300px)
|
|
|
height: 100%
|
|
|
padding-right: 5px
|
|
|
+ display: flex
|
|
|
+ flex-direction: column
|
|
|
|
|
|
-
|
|
|
.cart-container
|
|
|
width: 300px
|
|
|
height: 100%
|
|
|
border-left: 1px solid #d3d3d3
|
|
|
padding-left: 10px
|
|
|
+ display: flex
|
|
|
+ flex-direction: column
|
|
|
</style>
|