12345678910111213141516171819202122232425262728293031 |
- <template lang="pug">
- .cart
- cart-total
- cart-list(data: "items")
- cart-options
- </template>
- <script>
- import CartTotal from '@/components/CartTotal'
- import CartList from '@/components/CartList'
- import CartOptions from '@/components/CartOptions'
- import { mapGetters } from 'vuex'
- export default {
- components: {
- 'cart-total': CartTotal,
- 'cart-list': CartList,
- 'cart-options': CartOptions
- },
- computed: mapGetters({
- items: 'getCartItems'
- })
- }
- </script>
- <style lang="sass">
- .cart
- width: 100%
- height: 100%
- </style>
|