From b5f6f4713851fca4e2652e5ef44468acbd24ca1a Mon Sep 17 00:00:00 2001 From: ittoview Date: Sun, 22 Feb 2026 14:20:27 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20ITTO=E6=98=BE=E7=A4=BA=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=B9=B3=E6=BB=91=E8=BF=87=E6=B8=A1=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=20+=20=E8=B5=84=E6=BA=90=E7=AE=A1=E7=90=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ProcessDetailPage: 用motion height动画替换AnimatePresence,消除滚动条跳动 - P6.3 获取资源:添加ITTO明细 - P6.5 管理团队:添加ITTO明细 - P6.6 控制资源:添加ITTO明细 via [HAPI](https://hapi.run) Co-Authored-By: HAPI --- src/pages/ProcessDetailPage.tsx | 95 ++++++++++++--------------------- 1 file changed, 34 insertions(+), 61 deletions(-) diff --git a/src/pages/ProcessDetailPage.tsx b/src/pages/ProcessDetailPage.tsx index ba3ae8f..913364b 100644 --- a/src/pages/ProcessDetailPage.tsx +++ b/src/pages/ProcessDetailPage.tsx @@ -1,5 +1,5 @@ import { useParams, Link, useLocation, useNavigate } from 'react-router-dom' -import { motion, AnimatePresence } from 'framer-motion' +import { motion } from 'framer-motion' import { ArrowLeft, ArrowRight, FileText, Wrench, FileOutput, LayoutGrid, Workflow, User, Target, Clock, MapPin, HelpCircle, Cog, Eye, EyeOff } from 'lucide-react' import { getProcessDetail, processes } from '@/data' import { useState, useEffect } from 'react' @@ -227,16 +227,14 @@ export function ProcessDetailPage() { {visible.inputs ? '隐藏' : '显示'} - + {visible.inputs ? ( - +
    {processDetail.inputDetails?.map((inputDetail: any) => { const hasDetail = inputDetail.detail && inputDetail.detail.length > 0 return ( @@ -261,20 +259,13 @@ export function ProcessDetailPage() { ) })} - +
) : ( - +
{processDetail.inputs.length} 项已隐藏 - +
)} -
+ {/* 工具与技术 */} @@ -295,16 +286,14 @@ export function ProcessDetailPage() { {visible.tools ? '隐藏' : '显示'} - + {visible.tools ? ( - +
    {processDetail.toolDetails?.map((toolDetail: any) => { const hasDetail = toolDetail.detail && toolDetail.detail.length > 0 return ( @@ -329,20 +318,13 @@ export function ProcessDetailPage() { ) })} - +
) : ( - +
{processDetail.tools.length} 项已隐藏 - +
)} -
+ {/* 输出 */} @@ -363,16 +345,14 @@ export function ProcessDetailPage() { {visible.outputs ? '隐藏' : '显示'} - + {visible.outputs ? ( - +
    {processDetail.outputDetails?.map((outputDetail: any) => { const hasDetail = outputDetail.detail && outputDetail.detail.length > 0 return ( @@ -397,20 +377,13 @@ export function ProcessDetailPage() { ) })} - +
) : ( - +
{processDetail.outputs.length} 项已隐藏 - +
)} -
+