增加修改和删除功能

This commit is contained in:
2025-12-24 15:20:58 +08:00
parent 1aa39e11b4
commit 31cc78038b
26 changed files with 707 additions and 492 deletions
+7 -4
View File
@@ -42,7 +42,10 @@ const Modal = ({
</Dialog.Overlay>
{/* 内容区 */}
<Dialog.Content asChild>
<Dialog.Content
asChild
aria-describedby={undefined}
>
<motion.div
initial={{ opacity: 0, scale: 0.95, y: 20 }}
animate={{ opacity: 1, scale: 1, y: 0 }}
@@ -56,21 +59,21 @@ const Modal = ({
>
{/* 关闭按钮 */}
<Dialog.Close asChild>
<button
<button
className="absolute top-6 right-6 text-white/40 hover:text-white transition-colors"
aria-label="关闭"
>
<X className="w-5 h-5" />
</button>
</Dialog.Close>
{/* 标题 */}
{title && (
<Dialog.Title className="text-2xl font-serif mb-6">
{title}
</Dialog.Title>
)}
{/* 内容 */}
<div className="max-h-[70vh] overflow-y-auto pr-2 custom-scrollbar">
{children}