fix: 快递报价编辑页避免分区卡被 max-height 误裁导致露边

This commit is contained in:
2026-10-28 11:42:46 +08:00
parent f382ba9bd7
commit 5427b3830c
2 changed files with 13 additions and 9 deletions
@@ -159,7 +159,7 @@ function onAnchorClick(e: Event) {
<Card
size="small"
title="目的分区 × 重量带"
class="flex h-full min-h-0 flex-col overflow-hidden"
class="eq-panel-card flex h-full min-h-0 flex-col overflow-hidden"
:body-style="{
flex: '1 1 0%',
minHeight: 0,
@@ -172,7 +172,7 @@ function onAnchorClick(e: Event) {
<template #extra>
<Button size="small" type="dashed" @click="addRegion">添加分区</Button>
</template>
<div class="flex min-h-0 flex-1 gap-3">
<div class="flex min-h-0 flex-1 gap-3 overflow-hidden">
<aside
class="w-36 shrink-0 overflow-y-auto border-r border-border pr-2 pt-1"
>
@@ -184,13 +184,16 @@ function onAnchorClick(e: Event) {
@click="onAnchorClick"
/>
</aside>
<div ref="scrollRef" class="min-h-0 min-w-0 flex-1 overflow-y-auto">
<div
ref="scrollRef"
class="flex min-h-0 min-w-0 flex-1 flex-col gap-3 overflow-x-hidden overflow-y-auto pb-1"
>
<Card
v-for="(region, ri) in regions"
:id="`quote-region-${ri}`"
:key="ri"
size="small"
class="mb-3 shrink-0 scroll-mt-2"
class="shrink-0 scroll-mt-2"
:title="region.regionName || `分区${ri + 1}`"
>
<template #extra>
@@ -518,13 +518,13 @@ watch(
<Card
size="small"
title="基本信息"
class="flex h-full min-h-0 flex-col overflow-hidden"
class="eq-panel-card flex h-full min-h-0 flex-col overflow-hidden"
:body-style="cardBodyScrollStyle"
>
<BaseForm />
</Card>
</template>
<div class="h-full min-h-0 min-w-0">
<div class="h-full min-h-0 min-w-0 overflow-hidden">
<RegionBandEditor
v-if="isRegion"
v-model="regions"
@@ -534,7 +534,7 @@ watch(
v-else
size="small"
title="分区报价"
class="flex h-full min-h-0 flex-col overflow-hidden"
class="eq-panel-card flex h-full min-h-0 flex-col overflow-hidden"
:body-style="cardBodyScrollStyle"
>
<Empty
@@ -565,10 +565,11 @@ watch(
min-height: 0;
flex: 1 1 0%;
}
.express-quote-edit-page :deep(.ant-card) {
/* 只约束列级面板卡;勿套到右栏内部分区卡,否则 max-height:100% 会裁切并透出半截内容 */
.express-quote-edit-page :deep(.eq-panel-card.ant-card) {
max-height: 100%;
}
.express-quote-edit-page :deep(.ant-card-head) {
.express-quote-edit-page :deep(.eq-panel-card > .ant-card-head) {
flex-shrink: 0;
}
</style>