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
@@ -241,18 +241,22 @@ defineExpose({
resize,
}"
>
<slot
name="left"
:is-collapsed="!!toValue(panelCollapsed)"
:is-expanded="!!toValue(panelExpanded)"
:expand="expandLeft"
:collapse="collapseLeft"
:resize="resize"
></slot>
<div class="box-border h-full min-h-0 min-w-0">
<slot
name="left"
:is-collapsed="!!toValue(panelCollapsed)"
:is-expanded="!!toValue(panelExpanded)"
:expand="expandLeft"
:collapse="collapseLeft"
:resize="resize"
></slot>
</div>
</template>
</ResizablePanel>
<!-- 拖拽热区兼中缝,略留空隙即可 -->
<ResizableHandle
v-if="resizable"
class="w-1.5 !bg-transparent after:w-1.5"
:style="{ backgroundColor: splitLine ? undefined : 'transparent' }"
:with-handle="splitHandle"
/>
@@ -264,7 +268,9 @@ defineExpose({
:min-size="rightMinWidth"
>
<template #default>
<slot></slot>
<div class="box-border h-full min-h-0 min-w-0 pl-1 sm:pl-1.5">
<slot></slot>
</div>
</template>
</ResizablePanel>
</ResizablePanelGroup>