feat:脚本文件预览

This commit is contained in:
xiaozhu
2026-08-31 18:48:19 +08:00
parent 4ff0f344af
commit 690de643ad
12 changed files with 1138 additions and 65 deletions
@@ -29,6 +29,7 @@ type ScriptExplorerProps = {
) => void;
onSelect: (scriptId: string) => void;
onCopyResourcePath: (jupyterPath: string) => void;
onPreviewResource: (script: ScriptItem) => void;
uploadInputRef: RefObject<HTMLInputElement | null>;
onHandleUpload: (event: ChangeEvent<HTMLInputElement>) => void;
};
@@ -53,6 +54,7 @@ export function ScriptExplorer({
onContextMenu,
onSelect,
onCopyResourcePath,
onPreviewResource,
uploadInputRef,
onHandleUpload,
}: ScriptExplorerProps) {
@@ -251,6 +253,7 @@ export function ScriptExplorer({
onToggle={onToggle}
loadingChildrenPaths={loadingChildrenPaths}
onCopyResourcePath={onCopyResourcePath}
onPreviewResource={onPreviewResource}
/>
);
})}