fix: query modelscope files by recursive

This commit is contained in:
jialin
2024-09-27 16:50:09 +08:00
parent 7e985991cd
commit 49c0467428
26 changed files with 292 additions and 118 deletions
@@ -79,7 +79,7 @@ const TableRow: React.FC<
}, []);
const renderChildrenData = () => {
return renderChildren?.(childrenData);
return renderChildren?.(childrenData, record);
};
const handlePolling = async () => {
+1 -1
View File
@@ -52,7 +52,7 @@ export interface SealTableProps {
onCell?: (record: any, dataIndex: string) => void;
onSort?: (dataIndex: string, order: 'ascend' | 'descend') => void;
onExpand?: (expanded: boolean, record: any, rowKey: any) => void;
renderChildren?: (data: any) => React.ReactNode;
renderChildren?: (data: any, parent?: any) => React.ReactNode;
loadChildren?: (record: any) => Promise<any[]>;
loadChildrenAPI?: (record: any) => string;
contentRendered?: () => void;