paxton-front/components/ProductPrice.vue
alsaze 8e68d5b162
All checks were successful
Deploy / build (push) Successful in 12m45s
карта ПВЗ
2025-10-22 22:57:29 +03:00

41 lines
706 B
Vue

<template>
<div class="product-price">
<h2 v-if="isHeadline" class="product-price__text">
{{ text }} {{ price }} <Icon name="ph:currency-rub" />
</h2>
<div v-else class="product-price__text">
{{ text }} {{ price }} <Icon name="ph:currency-rub" />
</div>
</div>
</template>
<script setup lang="ts">
defineProps({
price: {
type: [String, Number],
required: true,
},
isHeadline: {
type: Boolean,
default: true,
},
text: {
type: String,
default: '',
},
})
</script>
<style lang="scss">
.product-price {
&__text {
display: flex;
flex-direction: row;
gap: 4px;
align-items: center;
text-align: center;
}
}
</style>