From 1f065942526b89d211b6a3c71fcc1200c416ef1d Mon Sep 17 00:00:00 2001 From: liuyun Date: Sun, 11 Oct 2026 00:48:33 +0800 Subject: [PATCH] fix: enlarge collapsed sidebar icons and make icon component inherit class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 侧栏折叠时图标放大到 22px(展开时加图标与文字间距) - 修复 el-menu-item 叶子项 #title 插槽误用 - icon 组件多根节点不自动继承 class,改为 inheritAttrs:false + v-bind="$attrs",使外部 class/size 生效 Co-Authored-By: Claude Opus 4.8 --- src/components/icon/icon.vue | 12 ++++++------ src/components/ty-sidebar.vue | 20 +++++++++++--------- stats.html | 2 +- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/components/icon/icon.vue b/src/components/icon/icon.vue index 7726941..487d813 100644 --- a/src/components/icon/icon.vue +++ b/src/components/icon/icon.vue @@ -5,24 +5,24 @@ @time: 2026/2/11 15:45 -->