From cd68811dfbb84bc0e5f50a55fdad6430cebc688d Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Sat, 4 Jul 2026 10:17:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=9E=E5=BF=86=E5=A4=8D=E4=B9=A0)?= =?UTF-8?q?=EF=BC=9A=E5=9B=9E=E5=BF=86=E8=BE=93=E5=85=A5=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E6=80=9D=E7=BB=B4=E5=AF=BC=E5=9B=BE=20+=20=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 回忆输入区从文本域改为可编辑思维导图(Tab 加子/Enter 加同级) - 回忆历史点击后自动将内容还原到导图编辑区 - 增加回忆页宽屏模式(wide route meta),适配导图横向展示 - MindMapViewer 增加 height prop 支持自定义高度 - 回忆、对比、标准导图各区域全部使用 60vh 导图展示 --- src/App.vue | 6 +- src/components/MindMapViewer.vue | 5 +- src/components/ReviewRecall.vue | 337 ++++++++++++++----------------- src/router/index.ts | 2 +- 4 files changed, 161 insertions(+), 189 deletions(-) diff --git a/src/App.vue b/src/App.vue index 17acf76..e4d942c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,7 +14,7 @@ const route = useRoute(); - + @@ -54,6 +54,10 @@ const route = useRoute(); padding: 18px 20px 24px; } +.shell-main.wide { + max-width: 1720px; +} + .shell-footer { height: auto; padding: 0 20px 18px; diff --git a/src/components/MindMapViewer.vue b/src/components/MindMapViewer.vue index 3b8c56d..c1ae45e 100644 --- a/src/components/MindMapViewer.vue +++ b/src/components/MindMapViewer.vue @@ -23,6 +23,8 @@ const props = defineProps<{ editable?: boolean; /** 是否按 MATCHED/MISSED 标记着色 */ colorByCompare?: boolean; + /** 画布高度,如 "520px"、"60vh",默认 480px */ + height?: string; }>(); const emit = defineEmits<{ @@ -143,13 +145,12 @@ onBeforeUnmount(() => {