fix: revert number formatting in DataDisplay and restore original value in ChartReceipt

This commit is contained in:
puriphatt 2025-03-10 10:23:01 +07:00
parent 2b35db5683
commit eba12e451a
2 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,5 @@
<script setup lang="ts">
import { Icon } from '@iconify/vue/dist/iconify.js';
import { formatNumberDecimal } from 'src/stores/utils';
defineEmits<{ (e: 'labelClick', value: string, index: number | null): void }>();
@ -39,7 +38,7 @@ withDefaults(
v-if="typeof value === 'string'"
@click="$emit('labelClick', value, null)"
>
{{ formatNumberDecimal(+value, 2) }}
{{ value }}
<q-tooltip v-if="tooltip" :delay="500">{{ value }}</q-tooltip>
</span>
<span v-else :class="{ 'link cursor-pointer': clickable }">