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
@@ -8,7 +8,7 @@
padding-block: 1.2em;
&::-webkit-scrollbar {
height: 8px;
height: var(--scrollbar-size);
}
&::-webkit-scrollbar-thumb {
@@ -0,0 +1,15 @@
.list-item {
display: flex;
align-items: center;
justify-content: flex-start;
width: 100%;
margin-bottom: 12px;
.field-wrapper {
flex: 1;
}
.btn {
margin-left: 10px;
}
}
+2 -2
View File
@@ -32,8 +32,8 @@
overflow-y: auto !important;
// custom scrollbar
&::-webkit-scrollbar {
width: 8px;
height: 6px;
width: var(--scrollbar-size);
height: var(--scrollbar-size);
}
&::-webkit-scrollbar-thumb {
@@ -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;
-1
View File
@@ -37,7 +37,6 @@
}
.ant-input {
/* 只隐藏垂直滚动条轨道 */
&::-webkit-scrollbar-track {
width: 0 !important;
color: transparent;