You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<div :class="`quantity-select ${theme}`">
|
|
|
|
<v-icon color="cyan"> WMi-plus </v-icon>
|
|
|
|
<div class="value En Bold"> {{ quantity }} <div class="unit Fa Thin"> {{ label }} </div> </div>
|
|
|
|
<v-icon color="red"> WMi-minus </v-icon>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
theme: { default: '' },
|
|
|
|
quantity: { default: '' },
|
|
|
|
label: { default: 'نام فارسی' },
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.quantity-select {
|
|
|
|
width: 100%;
|
|
|
|
padding: 0px 5px;
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.quantity-select .v-icon {
|
|
|
|
font-size: 30px;
|
|
|
|
opacity: 0.7;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.quantity-select .value {
|
|
|
|
padding: 15px 0px 0px 0px;
|
|
|
|
margin-top: 5px;
|
|
|
|
font-size: 40px;
|
|
|
|
color: var(--color-black);
|
|
|
|
}
|
|
|
|
.quantity-select .value .unit {
|
|
|
|
font-size: 12px;
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
.quantity-select .v-icon:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------*/
|
|
|
|
/* SM Size */
|
|
|
|
/*----------------------------------------------------*/
|
|
|
|
.quantity-select.sm .value {
|
|
|
|
font-size: 30px;
|
|
|
|
}
|
|
|
|
.quantity-select.sm .value .unit {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.quantity-select.sm .value {
|
|
|
|
padding-top: 0px;
|
|
|
|
margin-top: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|