You've already forked DataMate
refactor(DataManagement): 重构数据管理详情页面组件
- 移除 Overview 组件中的文件列表多选配置功能 - 添加 DatasetFileRow 类型定义并更新相关类型注解 - 修改 Overview 组件属性接口,增加 onUpload 回调函数 - 更新表格渲染函数中的类型注解,统一使用 DatasetFileRow 类型 - 简化按钮点击事件处理函数的参数传递 - 在 DatasetDetail 页面中移除顶部工具栏的上传按钮 - 将上传功能集成到 Overview 组件的文件操作区域 - 通过回调函数实现
This commit is contained in:
@@ -3,7 +3,6 @@ import { Breadcrumb, App, Tabs, Table, Tag } from "antd";
|
||||
import {
|
||||
ReloadOutlined,
|
||||
DownloadOutlined,
|
||||
UploadOutlined,
|
||||
EditOutlined,
|
||||
DeleteOutlined,
|
||||
PlusOutlined,
|
||||
@@ -226,12 +225,6 @@ export default function DatasetDetail() {
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
key: "upload",
|
||||
label: "导入数据",
|
||||
icon: <UploadOutlined />,
|
||||
onClick: () => setShowUploadDialog(true),
|
||||
},
|
||||
{
|
||||
key: "export",
|
||||
label: "导出",
|
||||
@@ -353,7 +346,12 @@ export default function DatasetDetail() {
|
||||
<Tabs activeKey={activeTab} items={tabList} onChange={setActiveTab} />
|
||||
<div className="h-full overflow-auto">
|
||||
{activeTab === "overview" && (
|
||||
<Overview dataset={dataset} filesOperation={filesOperation} fetchDataset={fetchDataset}/>
|
||||
<Overview
|
||||
dataset={dataset}
|
||||
filesOperation={filesOperation}
|
||||
fetchDataset={fetchDataset}
|
||||
onUpload={() => setShowUploadDialog(true)}
|
||||
/>
|
||||
)}
|
||||
{activeTab === "children" && (
|
||||
<div className="pt-4">
|
||||
|
||||
Reference in New Issue
Block a user