perf(short-drama-agent-front): 优化制作工作台交互与移动端布局

This commit is contained in:
GJ committed 2026-10-10 19:28:47 +08:00
1 parent b5eaed3981
commit 54a381ebd3
37 files changed
+1217 -426

No files matched your search

+5 -1
View File
@@ -13,6 +13,8 @@ withDefaults(
busy?: boolean
/** 使用宽弹窗布局。 */
wide?: boolean
/** 指定弹窗宽度,单位为像素;实际宽度仍受视口限制。 */
width?: number
}>(),
{ description: '', busy: false, wide: false }
)
@@ -78,13 +80,15 @@ onBeforeUnmount(() => {
<template>
<slot name="trigger" />
<!-- 以下是关闭打开时自动聚焦的公共弹窗模块 -->
<NModal
v-model:show="open"
preset="card"
:auto-focus="false"
:closable="!busy"
:mask-closable="!busy"
:close-on-esc="!busy"
:style="{ width: wide ? '1040px' : '600px' }"
:style="{ width: `${width ?? (wide ? 1040 : 600)}px` }"
class="app-dialog"
role="dialog"
:aria-label="title"