From 7b200dcb68b3819d30a96827fc2633c684bf5818 Mon Sep 17 00:00:00 2001 From: cfq Date: Tue, 27 Jan 2026 15:37:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(FileTree):=20=E4=B8=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=A0=91=E8=8A=82=E7=82=B9=E6=B7=BB=E5=8A=A0=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=8C=96=E5=9B=BE=E6=A0=87=E5=92=8C=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用 `#icon` 插槽为树节点添加自定义图标组件 - 重构图标和颜色逻辑,使用 `FILE_TYPE_CONFIG` 对象集中管理文件类型配置 - 为文件夹添加展开/收起状态的不同图标,并使用黄色区分 - 调整树节点标题的字体大小和行高以改善视觉一致性 --- src/components/FileTree.vue | 129 ++++++++++++++++++------------------ 1 file changed, 65 insertions(+), 64 deletions(-) diff --git a/src/components/FileTree.vue b/src/components/FileTree.vue index 4073b31..cf59b91 100644 --- a/src/components/FileTree.vue +++ b/src/components/FileTree.vue @@ -42,6 +42,12 @@ :load-data="onLoadData" @select="onSelect" > +