This commit is contained in:
Viet An
2026-06-08 22:37:23 +07:00
parent 853f969921
commit 5f39f5b0ec
14 changed files with 285 additions and 150 deletions

View File

@@ -1,10 +1,10 @@
<template>
<span :style="color ? `color:${color}` : ''">{{ value === 0 || value === null ? "-" : $numtoString(value) }}</span>
</template>
<script setup>
const { $numtoString } = useNuxtApp();
const { $empty, $numtoString } = useNuxtApp();
const props = defineProps({
value: Number,
color: String,
});
</script>
<template>
<span>{{ $empty(value) ? "-" : $numtoString(value) }}</span>
</template>