Fix: support file download in workflow result (#11338)

This commit is contained in:
KVOJJJin 2024-12-05 16:58:39 +08:00 • committed by GitHub
commit 0b25c0b677
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 247 additions and 135 deletions

View file

@ -27,7 +27,10 @@ type Props = {
isInNode?: boolean
onGenerated?: (prompt: string) => void
codeLanguages?: CodeLanguage
fileList?: FileEntity[]
fileList?: {
varName: string
list: FileEntity[]
}[]
showFileList?: boolean
showCodeGenerator?: boolean
}

View file

@ -208,7 +208,7 @@ const CodeEditor: FC<Props> = ({
isInNode={isInNode}
onGenerated={onGenerated}
codeLanguages={language}
fileList={fileList}
fileList={fileList as any}
showFileList={showFileList}
showCodeGenerator={showCodeGenerator}
>