|
@@ -1,7 +1,7 @@
|
|
|
<template lang="pug">
|
|
|
li.cart-item
|
|
|
h3.item-name {{ item.displayName }}
|
|
|
- input.item-quantity(type='number' min='1' :value='item.quantity')
|
|
|
+ input.item-quantity(type='number' min='1' :value='item.quantity' readonly)
|
|
|
span.item-x x
|
|
|
span.item-price {{ item.price | currency(...options) }}
|
|
|
span.item-equals =
|
|
@@ -10,6 +10,7 @@
|
|
|
.cart-item-options
|
|
|
.cart-item-option(class='fa fa-plus' @click='onClickIncrement')
|
|
|
.cart-item-option(class='fa fa-minus' @click='onClickDecrement')
|
|
|
+ .cart-item-option(class="fa fa-money" @click='onClickMoney')
|
|
|
.cart-item-option(class='fa fa-trash' @click='onClickDelete')
|
|
|
</template>
|
|
|
|
|
@@ -55,6 +56,9 @@
|
|
|
onClickDecrement() {
|
|
|
this.$emit('onClickDecrement', this.item)
|
|
|
},
|
|
|
+ onClickMoney() {
|
|
|
+ this.$emit('onClickMoney', this.item)
|
|
|
+ },
|
|
|
onClickDelete() {
|
|
|
this.$emit('onClickDelete', this.item)
|
|
|
}
|
|
@@ -126,7 +130,7 @@
|
|
|
display: flex
|
|
|
justify-content: center
|
|
|
.cart-item-options
|
|
|
- width: 90px
|
|
|
+ width: 100px
|
|
|
height: 20px
|
|
|
border: 1px solid #d3d3d3
|
|
|
border-bottom: none
|
|
@@ -146,6 +150,8 @@
|
|
|
color: #2196f3
|
|
|
&.fa-minus:hover
|
|
|
color: #ffc107
|
|
|
+ &.fa-money:hover
|
|
|
+ color: #4caf50
|
|
|
&.fa-trash:hover
|
|
|
color: #f44336
|
|
|
</style>
|