- caaloghi, categorie

This commit is contained in:
Surya Paolo
2024-05-08 16:07:42 +02:00
parent 84e7f6e9f4
commit 58f53f8c52
20 changed files with 704 additions and 415 deletions

37
src/components/CPrice/CPrice.ts Executable file
View File

@@ -0,0 +1,37 @@
import { defineComponent, onMounted, ref, toRef, watch } from 'vue'
import { tools } from '@store/Modules/tools'
export default defineComponent({
name: 'CPrice',
props: {
sale_price: {
type: Number,
},
price: {
type: Number,
},
bold: {
type: Boolean,
default: false,
},
},
setup(props) {
const real_price = ref(0)
onMounted(() => {
if (props.sale_price)
real_price.value = props.sale_price
else
real_price.value = props.price ? props.price : 0
})
return {
tools,
real_price,
}
},
})