21 lines
442 B
Vue
21 lines
442 B
Vue
<template>
|
|
<v-list-item>
|
|
<v-list-item-title class="text-h6 text-primary">
|
|
{{ value.value.toFixed(fixed ?? 2) }} {{ $t(`units.${value.unit}`) }}
|
|
</v-list-item-title>
|
|
<v-list-item-subtitle>
|
|
{{ label }}
|
|
</v-list-item-subtitle>
|
|
</v-list-item>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { Param } from '@/types/param'
|
|
|
|
defineProps<{
|
|
label: string
|
|
value: Param
|
|
fixed?: number
|
|
}>()
|
|
</script>
|