feat: 发布商品弹窗支持最小化并保留编辑草稿

This commit is contained in:
2026-09-04 15:18:36 +08:00
parent 37b5610f27
commit f24a2f6ef9
3 changed files with 157 additions and 34 deletions
@@ -303,14 +303,20 @@ function handleClosed() {
<slot></slot>
</div>
<VbenLoading v-if="showLoading || submitting" spinning />
<VbenIconButton
v-if="fullscreenButton"
class="hover:bg-accent hover:text-accent-foreground text-foreground/80 flex-center absolute right-10 top-3 hidden size-6 rounded-full px-1 text-lg opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none sm:block"
@click="handleFullscreen"
<!-- 关闭按钮左侧:全屏 + 自定义操作;从右到左为 关闭 | 自定义 | 全屏 -->
<div
class="absolute right-10 top-3 hidden items-center gap-1 sm:flex"
>
<Shrink v-if="fullscreen" class="size-3.5" />
<Expand v-else class="size-3.5" />
</VbenIconButton>
<VbenIconButton
v-if="fullscreenButton"
class="hover:bg-accent hover:text-accent-foreground text-foreground/80 flex-center size-6 rounded-full px-1 text-lg opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none"
@click="handleFullscreen"
>
<Shrink v-if="fullscreen" class="size-3.5" />
<Expand v-else class="size-3.5" />
</VbenIconButton>
<slot name="header-actions"></slot>
</div>
<DialogFooter
v-if="showFooter"