41 lines
706 B
Vue
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>
|