diff --git a/src/components/practice/HintInfo.tsx b/src/components/practice/HintInfo.tsx index 6ae2e80..5de23a4 100644 --- a/src/components/practice/HintInfo.tsx +++ b/src/components/practice/HintInfo.tsx @@ -1,4 +1,3 @@ -import { motion } from 'framer-motion' import type { CellInfo } from '@/utils/practice' import { knowledgeAreaMap, processMap } from '@/data' @@ -13,72 +12,53 @@ export function HintInfo({ currentCell }: HintInfoProps) { const ka = knowledgeAreaMap.get(currentCell.knowledgeAreaId) if (!ka?.tailoringFactors || ka.tailoringFactors.length === 0) { return ( - -

- 敏捷裁剪因素 -

-

暂无裁剪因素信息

-
+
+ 暂无裁剪因素信息 +
) } return ( - -

+
+

敏捷裁剪因素

-
- {ka.tailoringFactors.map((factor, index) => ( -
-

- {factor.title} -

-

+

+ {ka.tailoringFactors.slice(0, 2).map((factor, index) => ( +
+ + {factor.title}: + + {factor.description} -

+
))} + {ka.tailoringFactors.length > 2 && ( +
+ +{ka.tailoringFactors.length - 2} 个因素... +
+ )}
- +
) } else { const process = processMap.get(currentCell.processId!) const purpose = process?.purpose return ( - -

+
+

主要作用

{purpose ? ( -

+

{purpose}

) : ( -

暂无主要作用说明

+

暂无主要作用说明

)} - +
) } } diff --git a/src/components/practice/KnowledgeAreaCell.tsx b/src/components/practice/KnowledgeAreaCell.tsx index 41f3e69..0f129d6 100644 --- a/src/components/practice/KnowledgeAreaCell.tsx +++ b/src/components/practice/KnowledgeAreaCell.tsx @@ -38,13 +38,13 @@ export function KnowledgeAreaCell({ onClick(cellId)} tabIndex={tabIndex} @@ -58,14 +58,14 @@ export function KnowledgeAreaCell({ transition={{ duration: 0.2 }} > {isAnswered && cellInfo && ( -
+
{ka.order} - + {cellInfo.answer}
diff --git a/src/components/practice/PracticeMatrix.tsx b/src/components/practice/PracticeMatrix.tsx index b139278..8d52100 100644 --- a/src/components/practice/PracticeMatrix.tsx +++ b/src/components/practice/PracticeMatrix.tsx @@ -28,19 +28,19 @@ export function PracticeMatrix({ const sortedPGs = [...processGroups].sort((a, b) => a.order - b.order) return ( -
+
{/* 表头 */}
{sortedPGs.map((pg) => (
{pg.name}
@@ -55,11 +55,11 @@ export function PracticeMatrix({ return (
{/* 知识领域格子(横跨5列) */} @@ -91,14 +91,14 @@ export function PracticeMatrix({