From 360332efbf9f3e0d3fcb472e6a26d49f7d5b0c40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?=
<7854742+wang_rumeng@user.noreply.gitee.com>
Date: Sun, 10 Aug 2025 19:29:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BC=96=E8=BE=91=E6=A8=A1?=
=?UTF-8?q?=E6=80=81=E6=A1=86=EF=BC=8C=E6=96=B0=E5=A2=9E=E4=BF=9D=E5=AD=98?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=8A=E6=8F=90=E9=86=92=E9=9D=A2=E6=9D=BF?=
=?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E8=A7=92=E8=89=B2=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E9=A1=B9=E4=B8=BA=E2=80=9CVoiceover=E2=80=9D=E3=80=82=E5=90=8C?=
=?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=B0=83=E6=95=B4=E8=84=9A=E6=9C=AC=E6=A0=87?=
=?UTF-8?q?=E7=AD=BE=E5=86=85=E5=AE=B9=E4=BB=A5=E6=94=AF=E6=8C=81=E6=96=B0?=
=?UTF-8?q?=E5=B1=9E=E6=80=A7=20applyScript=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/ui/edit-modal.tsx | 56 +++++++++++++++++++-
components/ui/script-tab-content.tsx | 13 ++++-
components/ui/shot-editor/CharacterToken.tsx | 8 +--
3 files changed, 69 insertions(+), 8 deletions(-)
diff --git a/components/ui/edit-modal.tsx b/components/ui/edit-modal.tsx
index 7bfed3a..36b7baa 100644
--- a/components/ui/edit-modal.tsx
+++ b/components/ui/edit-modal.tsx
@@ -2,7 +2,7 @@
import React, { useState, useEffect, SetStateAction } from 'react';
import { motion, AnimatePresence } from 'framer-motion';
-import { X, Image, Users, Video, Music, Settings, FileText, Maximize, Minimize } from 'lucide-react';
+import { X, Image, Users, Video, Music, Settings, FileText, Undo2, TriangleAlert } from 'lucide-react';
import { cn } from '@/public/lib/utils';
import { ScriptTabContent } from './script-tab-content';
import { SceneTabContent } from './scene-tab-content';
@@ -10,6 +10,7 @@ import { ShotTabContent } from './shot-tab-content';
import { SettingsTabContent } from './settings-tab-content';
import { CharacterTabContent } from './character-tab-content';
import { MusicTabContent } from './music-tab-content';
+import FloatingGlassPanel from './FloatingGlassPanel';
interface EditModalProps {
isOpen: boolean;
@@ -27,6 +28,7 @@ interface EditModalProps {
setAnyAttribute: any;
isPauseWorkFlow: boolean;
scriptData: any[] | null;
+ applyScript: any;
}
const tabs = [
@@ -54,11 +56,13 @@ export function EditModal({
setIsPauseWorkFlow,
setAnyAttribute,
isPauseWorkFlow,
- scriptData
+ scriptData,
+ applyScript
}: EditModalProps) {
const [activeTab, setActiveTab] = useState(activeEditTab);
const [currentIndex, setCurrentIndex] = useState(currentSketchIndex);
const [currentRoleIndex, setCurrentRoleIndex] = useState(0);
+ const [isRemindFallbackOpen, setIsRemindFallbackOpen] = useState(false);
useEffect(() => {
setCurrentIndex(currentSketchIndex);
@@ -93,6 +97,18 @@ export function EditModal({
setCurrentIndex(0);
}
+ const handleSave = () => {
+ console.log('handleSave');
+ setIsRemindFallbackOpen(true);
+ }
+
+ const handleConfirmGotoFallback = () => {
+ console.log('handleConfirmGotoFallback');
+ }
+ const handleCloseRemindFallbackPanel = () => {
+ setIsRemindFallbackOpen(false);
+ }
+
const renderTabContent = () => {
switch (activeTab) {
case '0':
@@ -102,6 +118,7 @@ export function EditModal({
setIsPauseWorkFlow={setIsPauseWorkFlow}
setAnyAttribute={setAnyAttribute}
isPauseWorkFlow={isPauseWorkFlow}
+ applyScript={applyScript}
/>
);
case '1':
@@ -260,6 +277,7 @@ export function EditModal({
className="px-4 py-2 rounded-lg bg-blue-500 text-white hover:bg-blue-600 transition-colors"
whileHover={{ scale: 1.02 }}
whileTap={{ scale: 0.98 }}
+ onClick={() => {handleSave()}}
>
Save
@@ -267,6 +285,40 @@ export function EditModal({
+
+ {/* 提醒用户 点击保存 工作流将回退 并重新执行工作流 */}
+ 将重新生成视频并剪辑,是否需要继续?