mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 08:35:43 +00:00
6a8a25e3f8
* wip: charts.js experimental work * update lock file * wip: frontend redesign * wip: more UI fixes for consistency across themes * cleanup * improve UI log * style updates * fix lint errors
21 lines
352 B
Vue
21 lines
352 B
Vue
<template>
|
|
{{ value }}
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
type Props = {
|
|
amount: string | number;
|
|
};
|
|
|
|
const props = defineProps<Props>();
|
|
|
|
const fmt = await useFormatCurrency();
|
|
|
|
const value = computed(() => {
|
|
if (!props.amount || props.amount === "0") {
|
|
return fmt(0);
|
|
}
|
|
|
|
return fmt(props.amount);
|
|
});
|
|
</script>
|