feat: 添加图标库,更新菜单与页面标签中的icon相关功能与样式

This commit is contained in:
ZhuRui
2026-07-28 17:40:35 +08:00
parent 202f4bbd44
commit da90d7c356
11 changed files with 146 additions and 59 deletions
+13 -1
View File
@@ -64,6 +64,10 @@
font-weight: 500;
}
.tabIcon {
color: @primary;
}
.tabBg {
&.tabBgActive {
.tabBgInner {
@@ -127,7 +131,7 @@
transition: fill 0.15s;
}
// 仅包裹文字 + 关闭按钮,通过 margin 收在 tab 内部
// 仅包裹图标 + 文字 + 关闭按钮,通过 margin 收在 tab 内部
.tabContent {
position: relative;
height: 28px;
@@ -143,6 +147,14 @@
transition: background-color 0.35s;
}
.tabIcon {
display: inline-flex;
align-items: center;
flex-shrink: 0;
color: rgba(0, 0, 0, 0.45);
line-height: 1;
}
.tabTitle {
min-width: 0;
font-size: 13px;