Skip to content

Commit 150c684

Browse files
committed
Added Price component
1 parent 9e4444a commit 150c684

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div v-if="show && price" class="price">
3+
<span class="price-symbol">{{ symbol }}</span>
4+
<span class="price-number">{{ price }}</span>
5+
</div>
6+
</template>
7+
8+
<script>
9+
export default {
10+
name: 'Price',
11+
props: {
12+
show: {
13+
type: Boolean,
14+
required: true,
15+
},
16+
price: {
17+
type: String,
18+
required: true,
19+
},
20+
symbol: {
21+
type: [String, null, undefined],
22+
default: '',
23+
},
24+
},
25+
}
26+
</script>
27+
28+
<style></style>

0 commit comments

Comments
 (0)