mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 05:49:20 +08:00
fix: 修复运费模板包邮省份末行标签被裁切
This commit is contained in:
+19
-2
@@ -578,14 +578,17 @@ function onSkuTableWrapRef(el: HTMLElement | null) {
|
|||||||
</Space>
|
</Space>
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label="包邮省份" :span="2">
|
<Descriptions.Item label="包邮省份" :span="2">
|
||||||
<Space v-if="costTemplateDetail.freeProvinces?.length" wrap>
|
<div
|
||||||
|
v-if="costTemplateDetail.freeProvinces?.length"
|
||||||
|
class="free-province-tags"
|
||||||
|
>
|
||||||
<Tag
|
<Tag
|
||||||
v-for="(p, idx) in costTemplateDetail.freeProvinces"
|
v-for="(p, idx) in costTemplateDetail.freeProvinces"
|
||||||
:key="`${p.provinceId}-${idx}`"
|
:key="`${p.provinceId}-${idx}`"
|
||||||
>
|
>
|
||||||
{{ p.province || p.provinceId }}
|
{{ p.province || p.provinceId }}
|
||||||
</Tag>
|
</Tag>
|
||||||
</Space>
|
</div>
|
||||||
<span v-else>暂无</span>
|
<span v-else>暂无</span>
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item
|
<Descriptions.Item
|
||||||
@@ -859,4 +862,18 @@ function onSkuTableWrapRef(el: HTMLElement | null) {
|
|||||||
outline-offset: 4px;
|
outline-offset: 4px;
|
||||||
transition: outline-color 0.2s ease;
|
transition: outline-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Space wrap 负 margin 会裁切末行 Tag;用 flex gap 并给底部留一点余量 */
|
||||||
|
.free-province-tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
overflow: visible;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.free-province-tags :deep(.ant-tag) {
|
||||||
|
margin-inline-end: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user