style: 纸管重量计算页面布局调整
- 将结果由卡片式调整为列表式
This commit is contained in:
20
src/components/InputParamSection.vue
Normal file
20
src/components/InputParamSection.vue
Normal file
@ -0,0 +1,20 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user