From 52d083dbe2bfed7f7ea7993b1db87427e6c344fe Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 14 Sep 2026 20:43:37 +0800 Subject: [PATCH] refactor: delete LayerList.tsx (#1899 #1900) --- .../PipConfigPanel/components/LayerList.tsx | 58 ------------------- 1 file changed, 58 deletions(-) delete mode 100644 apps/web/src/pages/editing-planner/components/PipConfigPanel/components/LayerList.tsx diff --git a/apps/web/src/pages/editing-planner/components/PipConfigPanel/components/LayerList.tsx b/apps/web/src/pages/editing-planner/components/PipConfigPanel/components/LayerList.tsx deleted file mode 100644 index 135d507d6..000000000 --- a/apps/web/src/pages/editing-planner/components/PipConfigPanel/components/LayerList.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import React from "react" -import type { PipLayer } from "../../../types" -import { LAYER_COLORS } from "../constants" - -export interface LayerListProps { - layers: PipLayer[] - selectedId: string - onSelect: (id: string) => void - onDelete: (id: string) => void -} - -export const LayerList: React.FC = ({ layers, selectedId, onSelect, onDelete }) => { - if (layers.length === 0) { - return ( -
-
暂无图层,点击上方添加
-
- ) - } - - return ( -
- {layers.map((layer, idx) => ( -
onSelect(layer.id)} - > - {layer.thumbnail_url || layer.material_url ? ( - {layer.name} - ) : ( -
- )} - {layer.name} - -
- ))} -
- ) -}