diff --git a/src/app/parent/exams/[paperId]/page.tsx b/src/app/parent/exams/[paperId]/page.tsx index 9b9e2e3..4ad3af0 100644 --- a/src/app/parent/exams/[paperId]/page.tsx +++ b/src/app/parent/exams/[paperId]/page.tsx @@ -17,11 +17,11 @@ export default async function EditExamPage({ params }: { params: Promise<{ paper return (
-
+
← 试卷列表 -

{paper.title}

+

{paper.title}

-
+
← 试卷列表 -

新建试卷

+

新建试卷

diff --git a/src/app/parent/exams/paper-form.tsx b/src/app/parent/exams/paper-form.tsx index 8370659..658219f 100644 --- a/src/app/parent/exams/paper-form.tsx +++ b/src/app/parent/exams/paper-form.tsx @@ -89,7 +89,7 @@ export function PaperForm({ paper, isNew }: { paper: PaperMeta | null; isNew: bo return (
-
+
@@ -165,7 +165,7 @@ export function PaperForm({ paper, isNew }: { paper: PaperMeta | null; isNew: bo
{msg &&

{msg.text}

} -
+
diff --git a/src/app/parent/exams/question-list.tsx b/src/app/parent/exams/question-list.tsx index bb8ad06..ee389a8 100644 --- a/src/app/parent/exams/question-list.tsx +++ b/src/app/parent/exams/question-list.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { Fragment, useState } from "react"; import { ArrowDown, ArrowUp, Pencil, Plus, Trash2, X } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; @@ -72,37 +72,10 @@ export function QuestionList({ onChange(next); }; - return ( -
- {value.map((q, i) => { - const def = q as QuizQ; - return ( -
-
- {TYPE_LABEL[def.type]} - {def.stem} - - - - - - -
-
- ); - })} - - {draft ? ( -
-
+ // xuchao: 编辑表单——编辑存量题渲染在该题卡片下方,新增时渲染在列表末尾 + const draftForm = draft ? ( +
+