| 1 |
<template> |
| 2 |
<div class="order-bump-template-preview-area"> |
| 3 |
<div class="preview-header"> |
| 4 |
<h4>Preview</h4> |
| 5 |
</div> |
| 6 |
<Style1 |
| 7 |
v-if="selectedStyle=='style1'" |
| 8 |
:productImage="productImage" |
| 9 |
:checkBoxLabel="checkBoxLabel" |
| 10 |
:highLightText="highLightText" |
| 11 |
:productDescriptionText="productDescriptionText" |
| 12 |
:productName="productName" |
| 13 |
:price="price" |
| 14 |
:salePrice="salePrice" |
| 15 |
:htmlPrice="htmlPrice" |
| 16 |
/> |
| 17 |
|
| 18 |
<Style2 |
| 19 |
v-if="selectedStyle=='style2'" |
| 20 |
:productImage="productImage" |
| 21 |
:checkBoxLabel="checkBoxLabel" |
| 22 |
:highLightText="highLightText" |
| 23 |
:productDescriptionText="productDescriptionText" |
| 24 |
:productName="productName" |
| 25 |
:price="price" |
| 26 |
:salePrice="salePrice" |
| 27 |
:htmlPrice="htmlPrice" |
| 28 |
/> |
| 29 |
</div> |
| 30 |
</template> |
| 31 |
|
| 32 |
<script> |
| 33 |
import Style1 from "./styles/Style1.vue"; |
| 34 |
import Style2 from "./styles/Style2.vue"; |
| 35 |
export default { |
| 36 |
name: 'Preview', |
| 37 |
props: { |
| 38 |
productImage: String, |
| 39 |
checkBoxLabel: String, |
| 40 |
highLightText: String, |
| 41 |
productDescriptionText: String, |
| 42 |
productName: String, |
| 43 |
selectedStyle: String, |
| 44 |
price: String, |
| 45 |
salePrice: String, |
| 46 |
htmlPrice: String, |
| 47 |
}, |
| 48 |
components: { |
| 49 |
Style1, |
| 50 |
Style2, |
| 51 |
} |
| 52 |
} |
| 53 |
</script> |
| 54 |
|