feat: 增强连线题功能,添加错误反馈机制

- 在 MatchQuizPanel 组件中引入错误连线对的状态管理,提供红色高亮和抖动反馈。
- 更新匹配逻辑,确保用户在连线错误时能及时获得反馈信息。
- 修改类型定义,支持自定义错误提示信息的函数形式,提升灵活性。
- 优化用户体验,确保在错误状态下的匹配项能正确展示。
This commit is contained in:
zhongyidian committed 2026-03-03 13:27:25 +08:00
1 parent b91f2430c6
commit 5d00adc1a5
43 files changed
+1662 -54

No files matched your search

+2 -2
View File
@@ -5,8 +5,8 @@ import { Image } from "@/components";
import { getUserDefine } from "@/lib/utils/api-common";
import { useChenyunStore } from "@/store/chenyunStore";
const CHENYUN_LESSON_ID = "chenyunStore";
const CHENYUN_KEY = 1;
const CHENYUN_LESSON_ID = "hsgrl_Cheny_duihua";
const CHENYUN_KEY = 22;
const deserializeVisitedExhibits = (
data: Record<string, number[]> | undefined