feat: 实现剧本创作与拆解前端工作台

This commit is contained in:
GouJ committed 2026-08-27 19:33:51 +08:00
1 parent edc003443f
commit 2ee6f049f6
56 files changed
+7597 -2

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
<script setup lang="ts">
import {
DialogRoot,
DialogPortal,
DialogOverlay,
DialogContent,
DialogTitle,
DialogDescription,
DialogClose
} from 'reka-ui'
import { X } from '@lucide/vue'
/** 统一弹窗容器,Reka UI 负责焦点锁定、Escape 和无障碍语义。 */
defineProps<{ title: string; description: string; busy?: boolean }>()
const open = defineModel<boolean>('open', { default: false })
</script>
<template>
<DialogRoot v-model:open="open">
<slot name="trigger"></slot>
<DialogPortal>
<DialogOverlay class="dialog-overlay" />
<DialogContent
class="dialog-content"
@interact-outside="busy && $event.preventDefault()"
@escape-key-down="busy && $event.preventDefault()"
>
<div class="flex items-start justify-between gap-4">
<div>
<DialogTitle class="text-xl font-semibold">{{ title }}</DialogTitle
><DialogDescription class="mt-2 text-sm leading-6 text-muted">{{
description
}}</DialogDescription>
</div>
<DialogClose class="icon-button shrink-0" aria-label="关闭弹窗" :disabled="busy"
><X :size="18"
/></DialogClose>
</div>
<slot></slot>
</DialogContent>
</DialogPortal>
</DialogRoot>
</template>