Cart.vue 661 B

12345678910111213141516171819202122232425262728293031
  1. <template lang="pug">
  2. .cart
  3. cart-total
  4. cart-list(data: "items")
  5. cart-options
  6. </template>
  7. <script>
  8. import CartTotal from '@/components/CartTotal'
  9. import CartList from '@/components/CartList'
  10. import CartOptions from '@/components/CartOptions'
  11. import { mapGetters } from 'vuex'
  12. export default {
  13. components: {
  14. 'cart-total': CartTotal,
  15. 'cart-list': CartList,
  16. 'cart-options': CartOptions
  17. },
  18. computed: mapGetters({
  19. items: 'getCartItems'
  20. })
  21. }
  22. </script>
  23. <style lang="sass">
  24. .cart
  25. width: 100%
  26. height: 100%
  27. </style>