feat(题目): 判题结果从提交按钮下的浮层挪到左栏「结果」页签——改代码时结果就摆在旁边

原来结果是提交按钮下面的 n-popover:点一下外面就收起、最高 600px、盖住编辑器,
学生没法一边看「正确输出 / 你的输出」一边改代码,还得靠「上次结果」按钮找回来。

- 左栏新增「结果」页签(手机上排在「代码」后面),交上去或者语法检查没过就自动切过去;
  页签标题带状态图标(✕ / ✓ / ! / 判题中转圈),不只靠颜色
- 页签用 show:lazy:切走不卸载,编辑器里的错误标记、AI 提示都留着
- 「题目描述」改叫「题目」;去掉浮层和「上次结果」按钮

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-09-28 14:21:57 +08:00
1 parent 5cb7cfa924
commit f4db7dc81c
6 files changed
+160 -67

No files matched your search

@@ -73,9 +73,8 @@ function settleReview() {
function closeCommentPanel() {
commentPanel.value = false
// 点评价弹窗时,结果面板会当成「点了外面」收起来 —— 而「下一题」就在面板里
// (LessonNext),评价完得把它重新打开
submissionStore.showResult = true
// 「下一题」在结果页签里(LessonNext),评价完回到那里 —— 学生点评之前可能切去看了题目
submissionStore.revealResult()
settleReview()
}