diff --git a/frontend/src/components/CardView.tsx b/frontend/src/components/CardView.tsx index f230280..92363dd 100644 --- a/frontend/src/components/CardView.tsx +++ b/frontend/src/components/CardView.tsx @@ -168,12 +168,12 @@ function CardView(props: CardViewProps) { const ops = (item) => typeof operations === "function" ? operations(item) : operations; return ( -
-
+
+
{data.map((item) => (
{/* Header */} diff --git a/frontend/src/components/DetailHeader.tsx b/frontend/src/components/DetailHeader.tsx index dc14b63..b3c910e 100644 --- a/frontend/src/components/DetailHeader.tsx +++ b/frontend/src/components/DetailHeader.tsx @@ -48,7 +48,7 @@ function DetailHeader({
= ({ {options.map((option) => (
{editingTag?.id === tag.id ? (
@@ -199,7 +199,7 @@ const TagManager: React.FC = ({ title="标签管理" width={500} > -
+
{/* Add New Tag */}
-
+
{tags.map((tag) => ( (
diff --git a/frontend/src/index.css b/frontend/src/index.css index 5b2646d..e5fca1b 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -42,4 +42,28 @@ opacity: 100%; visibility: visible; transform: translateX(0); -} \ No newline at end of file +} + +@layer components { + .flex-center { + @apply flex items-center justify-center; + } + .flex-overflow-auto { + @apply flex-1 flex flex-col overflow-auto h-full; + } + .flex-overflow-hidden { + @apply flex flex-col h-full overflow-hidden; + } + .border-card { + @apply border border-[#f0f0f0] rounded-lg bg-white; + } + .border { + @apply border border-gray-100; + } + .border-bottom { + @apply border-b border-gray-100; + } + .border-top { + @apply border-t border-gray-100; + } +} diff --git a/frontend/src/pages/DataAnnotation/Annotate/components/ImageAnnotation.tsx b/frontend/src/pages/DataAnnotation/Annotate/components/ImageAnnotation.tsx index 0e9090e..8d95e2b 100644 --- a/frontend/src/pages/DataAnnotation/Annotate/components/ImageAnnotation.tsx +++ b/frontend/src/pages/DataAnnotation/Annotate/components/ImageAnnotation.tsx @@ -429,7 +429,7 @@ export default function ImageAnnotationWorkspace({ }`} onClick={() => setSelectedImageIndex(index)} > -
+
{index + 1}
-
+
+
{/* Header */}
@@ -134,7 +134,7 @@ export default function AnnotationTaskCreate() {

创建标注任务

-
+
{/* Step Content */} -
+
{renderStepContent()}
-
+
{currentStep > 1 && } {currentStep === 2 ? ( diff --git a/frontend/src/pages/DataCleansing/Create/CreateTempate.tsx b/frontend/src/pages/DataCleansing/Create/CreateTempate.tsx index bc808e4..2f7876e 100644 --- a/frontend/src/pages/DataCleansing/Create/CreateTempate.tsx +++ b/frontend/src/pages/DataCleansing/Create/CreateTempate.tsx @@ -90,9 +90,9 @@ export default function CleansingTemplateCreate() {
-
+
{renderStepContent()}
-
+
{currentStep > 1 && } {currentStep === 2 ? ( diff --git a/frontend/src/pages/DataCleansing/Create/components/OperatorOrchestration.tsx b/frontend/src/pages/DataCleansing/Create/components/OperatorOrchestration.tsx index 6bae1b8..eaea432 100644 --- a/frontend/src/pages/DataCleansing/Create/components/OperatorOrchestration.tsx +++ b/frontend/src/pages/DataCleansing/Create/components/OperatorOrchestration.tsx @@ -105,7 +105,7 @@ const OperatorFlow: React.FC = ({
{/* 编排区域 */}
e.preventDefault()} onDragLeave={handleContainerDragLeave} onDrop={handleDropToContainer} diff --git a/frontend/src/pages/DataCleansing/Home/components/ProcessFlowDiagram.tsx b/frontend/src/pages/DataCleansing/Home/components/ProcessFlowDiagram.tsx index 426012c..c307057 100644 --- a/frontend/src/pages/DataCleansing/Home/components/ProcessFlowDiagram.tsx +++ b/frontend/src/pages/DataCleansing/Home/components/ProcessFlowDiagram.tsx @@ -56,7 +56,7 @@ export default function ProcessFlowDiagram() { ]; return ( -
+
{flowSteps.map((step, index) => { diff --git a/frontend/src/pages/DataCleansing/cleansing.model.ts b/frontend/src/pages/DataCleansing/cleansing.model.ts index c8fa829..58cdce0 100644 --- a/frontend/src/pages/DataCleansing/cleansing.model.ts +++ b/frontend/src/pages/DataCleansing/cleansing.model.ts @@ -16,7 +16,11 @@ export interface CleansingTask { color: string; }; startedAt: string; - progress: number; + progress: { + finishedFileNum: number; + process: 100, + totalFileNum: number; + }; operators: OperatorI[]; createdAt: string; updatedAt: string; diff --git a/frontend/src/pages/DataManagement/Create/CreateDataset.tsx b/frontend/src/pages/DataManagement/Create/CreateDataset.tsx index 610404a..4042630 100644 --- a/frontend/src/pages/DataManagement/Create/CreateDataset.tsx +++ b/frontend/src/pages/DataManagement/Create/CreateDataset.tsx @@ -56,7 +56,7 @@ export default function DatasetCreate() {
{/* form */} -
+
-
+
- 筛选器 +

筛选器

{hasActiveFilters && ( { - const iconMap = { - preprocessing: Code, - training: Brain, - inference: Cpu, - postprocessing: Package, - }; - const IconComponent = iconMap[type as keyof typeof iconMap] || Code; - return ; - }; return ( (