From e56fc4b5f1e07aea1c8e961e87736753f7256820 Mon Sep 17 00:00:00 2001 From: cfq Date: Wed, 28 Jan 2026 14:43:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=87=E4=BB=B6=E6=A0=91):=20=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E6=96=87=E4=BB=B6=E6=A0=91=E4=B8=8E=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5=E7=9A=84=E8=81=94=E5=8A=A8=E9=80=89=E6=8B=A9=E5=92=8C?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 HomeTab 中显示文件名和完整路径,提升可读性 - 监听 activeTab 变化,自动在文件树中选中对应文件并展开父目录 - 添加滚动定位功能,确保选中节点在可视区域内 - 优化文件树模板结构,提高代码可维护性 --- src/components/FileTree.vue | 360 ++++++++++++++++++++---------------- src/components/HomeTab.vue | 3 +- 2 files changed, 201 insertions(+), 162 deletions(-) diff --git a/src/components/FileTree.vue b/src/components/FileTree.vue index 3522d64..782dcf5 100644 --- a/src/components/FileTree.vue +++ b/src/components/FileTree.vue @@ -1,13 +1,7 @@