From 1c1b82ea66ea8a635567c63c8b416078ca69fc62 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 14 Sep 2026 20:43:27 +0800 Subject: [PATCH] refactor: delete EditorClipList.tsx (#1899 #1900) --- .../components/EditorClipList.tsx | 148 ------------------ 1 file changed, 148 deletions(-) delete mode 100644 apps/web/src/pages/editing-planner/components/EditorClipList.tsx diff --git a/apps/web/src/pages/editing-planner/components/EditorClipList.tsx b/apps/web/src/pages/editing-planner/components/EditorClipList.tsx deleted file mode 100644 index 1994eeb23..000000000 --- a/apps/web/src/pages/editing-planner/components/EditorClipList.tsx +++ /dev/null @@ -1,148 +0,0 @@ -/** - * 编辑器右侧栏 — 片段列表 Tab - * 紧凑版片段管理:选中、上下移动、删除、添加 - */ -import React from "react" -import { Button, Tooltip, Empty } from "antd" -import { - UpOutlined, - DownOutlined, - DeleteOutlined, - PlusOutlined, - ScissorOutlined, - SoundOutlined, - PictureOutlined, - VideoCameraOutlined, -} from "@ant-design/icons" -import type { ClipData, ClipType } from "../types" - -interface EditorClipListProps { - clips: ClipData[] - selectedClipId: string | null - onSelect: (clipId: string) => void - onMoveUp: (clipId: string) => void - onMoveDown: (clipId: string) => void - onRemove: (clipId: string) => void - onAdd: () => void -} - -const clipTypeIcon: Record = { - video: , - image: , - voice: , - pip: , -} - -const clipTypeLabel: Record = { - video: "视频", - image: "图片", - voice: "配音", - pip: "混剪", -} - -const EditorClipList: React.FC = ({ - clips, - selectedClipId, - onSelect, - onMoveUp, - onMoveDown, - onRemove, - onAdd, -}) => { - if (clips.length === 0) { - return ( -
- - -
- ) - } - - return ( -
- {/* 顶部工具栏 */} -
- - 共 {clips.length} 个片段 - - - - -
- - {/* 片段列表 */} -
- {clips.map((clip, index) => ( -
onSelect(clip.id)} - > - {/* 序号 + 类型图标 */} -
- {index + 1} - - {clipTypeIcon[clip.type] || } - - {clipTypeLabel[clip.type] || "片段"} - - -
- - {/* 文案预览 */} - {clip.script_text && ( -
- {clip.script_text.slice(0, 40)} - {clip.script_text.length > 40 ? "..." : ""} -
- )} - - {/* 操作按钮 */} -
e.stopPropagation()}> - -
-
- ))} -
-
- ) -} - -export default EditorClipList