style: 纸吸管计算页面布局调整

- 将卡片式布局调整为列表式布局
This commit is contained in:
2025-12-01 16:44:40 +08:00
parent 5651405605
commit b894d2a4ae
2 changed files with 148 additions and 118 deletions

View File

@ -66,68 +66,84 @@
/> />
{{ $t('results') }} {{ $t('results') }}
</v-card-title> </v-card-title>
<v-row> <v-list lines="two">
<v-col cols="12"> <result-section
<result-card :label="`${$t('paperStrawResult.paperTubeInnerDiameter')}`"
:label="`${$t('paperStrawResult.paperTubeInnerDiameter')}`" :value="result.paperCoreDiameter"
:value="result.paperCoreDiameter" />
/> <result-section
</v-col> :label="`${$t('paperStrawResult.paperTubeExternalDiameter')}`"
<v-col cols="12"> :value="result.paperTubeExternalDiameter"
<result-card />
:label="`${$t('paperStrawResult.paperTubeExternalDiameter')}`" <result-section
:value="result.paperTubeExternalDiameter" :label="`${$t('paperStrawResult.paperTubeThickness')}`"
/> :value="result.paperTubeWallThickness"
</v-col> />
<v-col cols="12"> <result-section
<result-card :label="`${$t('paperStrawResult.bottomPaperAngle')}`"
:label="`${$t('paperStrawResult.paperTubeThickness')}`" :value="result.bottomPaperAngle"
:value="result.paperTubeWallThickness" />
/> <result-section
</v-col> :label="`${$t('paperStrawResult.leadingLength')}`"
<v-col cols="12"> :value="result.leadingLength"
<result-card />
:label="`${$t('paperStrawResult.bottomPaperAngle')}`" <result-section
:value="result.bottomPaperAngle" :label="`${$t('paperStrawResult.bottomPaperWidth')}`"
/> :value="result.bottomPaperWidth"
</v-col> />
<v-col cols="12"> <result-section
<result-card :label="`${$t('paperStrawResult.secondLayerPaperWidth')}`"
:label="`${$t('paperStrawResult.leadingLength')}`" :value="result.secondLayerPaperWidth"
:value="result.leadingLength" />
/> <result-section
</v-col> :label="`${$t('paperStrawResult.thirdLayerPaperWidth')}`"
<v-col cols="12"> :value="result.thirdLayerPaperWidth"
<result-card />
:label="`${$t('paperStrawResult.bottomPaperWidth')}`" <result-section
:value="result.bottomPaperWidth" :label="`${$t('paperStrawResult.topPaperWidth')}`"
/> :value="result.topPaperWidth"
</v-col> />
<v-col cols="12"> <result-section
<result-card :label="`${$t('paperStrawResult.beltWidth')}`"
:label="`${$t('paperStrawResult.secondLayerPaperWidth')}`" :value="result.beltWidth"
:value="result.secondLayerPaperWidth" />
/> </v-list>
</v-col>
<v-col cols="12"> <v-expansion-panels flat multiple>
<result-card <v-expansion-panel hide-actions>
:label="`${$t('paperStrawResult.thirdLayerPaperWidth')}`" <v-expansion-panel-title class="text-warning font-weight-bold">
:value="result.thirdLayerPaperWidth" <template #default="{ expanded }">
/> <span>
</v-col> <v-icon icon="mdi-information-outline" />
<v-col cols="12"> {{ expanded ? $t('calculationParameters') : $t('expandToShowCalculationParameters') }}
<result-card </span>
:label="`${$t('paperStrawResult.topPaperWidth')}`" </template>
:value="result.topPaperWidth" </v-expansion-panel-title>
/> <v-expansion-panel-text>
</v-col> <v-row>
<v-col cols="12"> <v-col cols="6">
<result-card <input-param-section :label="$t('paperTubeInnerDiameter')" :value="paperCoreDiameter" />
:label="`${$t('paperStrawResult.beltWidth')}`" </v-col>
:value="result.beltWidth" <v-col cols="6">
/> <input-param-section :label="$t('bottomPaperWidth')" :value="bottomPaperWidth" />
</v-col> </v-col>
</v-row> <v-col cols="6">
<input-param-section :label="$t('bottomPaperThickness')" :value="bottomPaperThickness" />
</v-col>
<v-col cols="6">
<input-param-section :label="$t('secondLayerPaperThickness')" :value="secondLayerPaperThickness" />
</v-col>
<v-col cols="6">
<input-param-section :label="$t('thirdLayerPaperThickness')" :value="thirdLayerPaperThickness" />
</v-col>
<v-col cols="6">
<input-param-section :label="$t('topPaperThickness')" :value="topPaperThickness" />
</v-col>
</v-row>
</v-expansion-panel-text>
</v-expansion-panel>
</v-expansion-panels>
</v-card> </v-card>
</v-col> </v-col>
</v-row> </v-row>

View File

@ -63,62 +63,76 @@
/> />
{{ $t('results') }} {{ $t('results') }}
</v-card-title> </v-card-title>
<v-row> <v-list lines="two">
<v-col cols="12"> <result-section
<result-card :label="`${$t('paperStrawResult.paperTubeInnerDiameter')}`"
:label="`${$t('paperStrawResult.paperTubeInnerDiameter')}`" :value="result.paperCoreDiameter"
:value="result.paperCoreDiameter" />
/> <result-section
</v-col> :label="`${$t('paperStrawResult.paperTubeExternalDiameter')}`"
<v-col cols="12"> :value="result.paperTubeExternalDiameter"
<result-card />
:label="`${$t('paperStrawResult.paperTubeExternalDiameter')}`" <result-section
:value="result.paperTubeExternalDiameter" :label="`${$t('paperStrawResult.paperTubeThickness')}`"
/> :value="result.paperTubeWallThickness"
</v-col> />
<v-col cols="12"> <result-section
<result-card :label="`${$t('paperStrawResult.bottomPaperAngle')}`"
:label="`${$t('paperStrawResult.paperTubeThickness')}`" :value="result.bottomPaperAngle"
:value="result.paperTubeWallThickness" />
/> <result-section
</v-col> :label="`${$t('paperStrawResult.leadingLength')}`"
<v-col cols="12"> :value="result.leadingLength"
<result-card />
:label="`${$t('paperStrawResult.bottomPaperAngle')}`" <result-section
:value="result.bottomPaperAngle" :label="`${$t('paperStrawResult.bottomPaperWidth')}`"
/> :value="result.bottomPaperWidth"
</v-col> />
<v-col cols="12"> <result-section
<result-card :label="`${$t('paperStrawResult.middlePaperWidth')}`"
:label="`${$t('paperStrawResult.leadingLength')}`" :value="result.middlePaperWidth"
:value="result.leadingLength" />
/> <result-section
</v-col> :label="`${$t('paperStrawResult.topPaperWidth')}`"
<v-col cols="12"> :value="result.topPaperWidth"
<result-card />
:label="`${$t('paperStrawResult.bottomPaperWidth')}`" <result-section
:value="result.bottomPaperWidth" :label="`${$t('paperStrawResult.beltWidth')}`"
/> :value="result.beltWidth"
</v-col> />
<v-col cols="12"> </v-list>
<result-card
:label="`${$t('paperStrawResult.middlePaperWidth')}`" <v-expansion-panels flat multiple>
:value="result.middlePaperWidth" <v-expansion-panel hide-actions>
/> <v-expansion-panel-title class="text-warning font-weight-bold">
</v-col> <template #default="{ expanded }">
<v-col cols="12"> <span>
<result-card <v-icon icon="mdi-information-outline" />
:label="`${$t('paperStrawResult.topPaperWidth')}`" {{ expanded ? $t('calculationParameters') : $t('expandToShowCalculationParameters') }}
:value="result.topPaperWidth" </span>
/> </template>
</v-col> </v-expansion-panel-title>
<v-col cols="12"> <v-expansion-panel-text>
<result-card <v-row>
:label="`${$t('paperStrawResult.beltWidth')}`" <v-col cols="6">
:value="result.beltWidth" <input-param-section :label="$t('paperTubeInnerDiameter')" :value="paperCoreDiameter" />
/> </v-col>
</v-col> <v-col cols="6">
</v-row> <input-param-section :label="$t('bottomPaperWidth')" :value="bottomPaperWidth" />
</v-col>
<v-col cols="6">
<input-param-section :label="$t('bottomPaperThickness')" :value="bottomPaperThickness" />
</v-col>
<v-col cols="6">
<input-param-section :label="$t('middlePaperThickness')" :value="middlePaperThickness" />
</v-col>
<v-col cols="6">
<input-param-section :label="$t('topPaperThickness')" :value="topPaperThickness" />
</v-col>
</v-row>
</v-expansion-panel-text>
</v-expansion-panel>
</v-expansion-panels>
</v-card> </v-card>
</v-col> </v-col>
</v-row> </v-row>