PHP Classes

File: resources/js/components/Layouts/TopBar.vue

Recommend this page to a friend!
  Classes of Edward Paul   Flexible PHP Coupon System   resources/js/components/Layouts/TopBar.vue   Download  
File: resources/js/components/Layouts/TopBar.vue
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Flexible PHP Coupon System
E-commerce system that supports discount coupons
Author: By
Last change:
Date: 3 years ago
Size: 589 bytes
 

Contents

Class file image Download
<template> <header class="header"> <div class="container"> {{ cartItemCount }} items in cart (${{ cartTotal }}) </div> </header> </template> <script> import { mapGetters } from 'vuex' export default { name: "TopBar", computed: { ...mapGetters({ cartItemCount: 'cartItemCount', cartTotal: 'cartTotal' }) } } </script> <style> .header { background-color: #222; color: #fff; padding: 20px; margin-bottom: 20px; } </style>