mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 17:09:20 +08:00
fix: 快递报价编辑页避免分区卡被 max-height 误裁导致露边
This commit is contained in:
+7
-4
@@ -159,7 +159,7 @@ function onAnchorClick(e: Event) {
|
|||||||
<Card
|
<Card
|
||||||
size="small"
|
size="small"
|
||||||
title="目的分区 × 重量带"
|
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="{
|
:body-style="{
|
||||||
flex: '1 1 0%',
|
flex: '1 1 0%',
|
||||||
minHeight: 0,
|
minHeight: 0,
|
||||||
@@ -172,7 +172,7 @@ function onAnchorClick(e: Event) {
|
|||||||
<template #extra>
|
<template #extra>
|
||||||
<Button size="small" type="dashed" @click="addRegion">添加分区</Button>
|
<Button size="small" type="dashed" @click="addRegion">添加分区</Button>
|
||||||
</template>
|
</template>
|
||||||
<div class="flex min-h-0 flex-1 gap-3">
|
<div class="flex min-h-0 flex-1 gap-3 overflow-hidden">
|
||||||
<aside
|
<aside
|
||||||
class="w-36 shrink-0 overflow-y-auto border-r border-border pr-2 pt-1"
|
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"
|
@click="onAnchorClick"
|
||||||
/>
|
/>
|
||||||
</aside>
|
</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
|
<Card
|
||||||
v-for="(region, ri) in regions"
|
v-for="(region, ri) in regions"
|
||||||
:id="`quote-region-${ri}`"
|
:id="`quote-region-${ri}`"
|
||||||
:key="ri"
|
:key="ri"
|
||||||
size="small"
|
size="small"
|
||||||
class="mb-3 shrink-0 scroll-mt-2"
|
class="shrink-0 scroll-mt-2"
|
||||||
:title="region.regionName || `分区${ri + 1}`"
|
:title="region.regionName || `分区${ri + 1}`"
|
||||||
>
|
>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
|
|||||||
@@ -518,13 +518,13 @@ watch(
|
|||||||
<Card
|
<Card
|
||||||
size="small"
|
size="small"
|
||||||
title="基本信息"
|
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"
|
:body-style="cardBodyScrollStyle"
|
||||||
>
|
>
|
||||||
<BaseForm />
|
<BaseForm />
|
||||||
</Card>
|
</Card>
|
||||||
</template>
|
</template>
|
||||||
<div class="h-full min-h-0 min-w-0">
|
<div class="h-full min-h-0 min-w-0 overflow-hidden">
|
||||||
<RegionBandEditor
|
<RegionBandEditor
|
||||||
v-if="isRegion"
|
v-if="isRegion"
|
||||||
v-model="regions"
|
v-model="regions"
|
||||||
@@ -534,7 +534,7 @@ watch(
|
|||||||
v-else
|
v-else
|
||||||
size="small"
|
size="small"
|
||||||
title="分区报价"
|
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"
|
:body-style="cardBodyScrollStyle"
|
||||||
>
|
>
|
||||||
<Empty
|
<Empty
|
||||||
@@ -565,10 +565,11 @@ watch(
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
flex: 1 1 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%;
|
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;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user