style: 收紧 ColPage 左右栏中缝间距

This commit is contained in:
2026-10-11 01:38:48 +08:00
parent 1f4ea2074a
commit 1b06aa6bcc
12 changed files with 26 additions and 20 deletions
@@ -154,7 +154,7 @@ const formatAmount = (amount: number) => `¥${Number(amount || 0).toFixed(2)}`;
@select="onShopSelect" @select="onShopSelect"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -291,7 +291,7 @@ onMounted(async () => {
<template> <template>
<PddShopColPage :selected-shop-id="selectedShopId" @select="onShopSelect"> <PddShopColPage :selected-shop-id="selectedShopId" @select="onShopSelect">
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -485,7 +485,7 @@ onUnmounted(() => stopJobPoll());
@select-unassigned="selectUnassigned" @select-unassigned="selectUnassigned"
> >
<Card <Card
class="publish-desk-card ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden sm:ml-2" class="publish-desk-card flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden"
:body-style="{ :body-style="{
flex: 1, flex: 1,
minHeight: 0, minHeight: 0,
@@ -344,7 +344,7 @@ function openDetail(row: PddOrderVO.Info) {
@select="onShopSelect" @select="onShopSelect"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -176,7 +176,7 @@ async function handleSave() {
@select="onCompanySelect" @select="onCompanySelect"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -197,7 +197,7 @@ onMounted(() => {
@select="onCompanySelect" @select="onCompanySelect"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -671,7 +671,7 @@ onMounted(async () => {
@add-for-shop="handleAddForShop" @add-for-shop="handleAddForShop"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -227,7 +227,7 @@ const formatAmount = (amount: number) => `¥${amount.toFixed(2)}`;
@add-for-shop="handleAddForShop" @add-for-shop="handleAddForShop"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -317,7 +317,7 @@ const formatAmount = (amount: number) => `¥${amount.toFixed(2)}`;
@add-for-shop="handleAddForShop" @add-for-shop="handleAddForShop"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -229,7 +229,7 @@ const formatAmount = (amount: number) => `¥${amount.toFixed(2)}`;
@add-for-shop="handleAddForShop" @add-for-shop="handleAddForShop"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -300,7 +300,7 @@ watch(currentCompany, () => {
@add-for-company="handleAddForCompany" @add-for-company="handleAddForCompany"
> >
<Card <Card
class="ml-1 flex h-full min-h-0 min-w-0 flex-1 flex-col sm:ml-2" class="flex h-full min-h-0 min-w-0 flex-1 flex-col"
:body-style="{ :body-style="{
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
@@ -241,6 +241,7 @@ defineExpose({
resize, resize,
}" }"
> >
<div class="box-border h-full min-h-0 min-w-0">
<slot <slot
name="left" name="left"
:is-collapsed="!!toValue(panelCollapsed)" :is-collapsed="!!toValue(panelCollapsed)"
@@ -249,10 +250,13 @@ defineExpose({
:collapse="collapseLeft" :collapse="collapseLeft"
:resize="resize" :resize="resize"
></slot> ></slot>
</div>
</template> </template>
</ResizablePanel> </ResizablePanel>
<!-- 拖拽热区兼中缝,略留空隙即可 -->
<ResizableHandle <ResizableHandle
v-if="resizable" v-if="resizable"
class="w-1.5 !bg-transparent after:w-1.5"
:style="{ backgroundColor: splitLine ? undefined : 'transparent' }" :style="{ backgroundColor: splitLine ? undefined : 'transparent' }"
:with-handle="splitHandle" :with-handle="splitHandle"
/> />
@@ -264,7 +268,9 @@ defineExpose({
:min-size="rightMinWidth" :min-size="rightMinWidth"
> >
<template #default> <template #default>
<div class="box-border h-full min-h-0 min-w-0 pl-1 sm:pl-1.5">
<slot></slot> <slot></slot>
</div>
</template> </template>
</ResizablePanel> </ResizablePanel>
</ResizablePanelGroup> </ResizablePanelGroup>