Files
web/app/components/datatable/format/FormatNumber.vue
2026-05-05 11:06:49 +07:00

11 lines
271 B
Vue

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