From 97caefa67338e5bfa081eef7db42ef44b7a85000 Mon Sep 17 00:00:00 2001 From: cfq Date: Fri, 30 Jan 2026 17:27:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(editor):=20=E6=B7=BB=E5=8A=A0=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=A4=A7=E7=BA=B2=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在编辑器工具栏添加目录切换按钮,支持显示/隐藏目录侧边栏 - 实现实时目录生成功能,自动解析Markdown标题并生成大纲 - 添加目录点击跳转功能,点击目录项可滚动到对应标题位置 - 优化编辑器布局,支持侧边栏展开/收起动画效果 --- src/components/EditorToolbar.vue | 18 ++- src/components/LivePreviewEditor.vue | 191 ++++++++++++++++++++++++--- 2 files changed, 190 insertions(+), 19 deletions(-) diff --git a/src/components/EditorToolbar.vue b/src/components/EditorToolbar.vue index 99ee9e3..3055e61 100644 --- a/src/components/EditorToolbar.vue +++ b/src/components/EditorToolbar.vue @@ -1,6 +1,16 @@