mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-23 05:10:57 +00:00
feat: 优化外链标签样式,使用系统主题颜色
This commit is contained in:
@@ -236,7 +236,6 @@ const extractAffixTags = (routes: RouteRecordRaw[], basePath = "/"): TagView[] =
|
||||
fullPath,
|
||||
name: String(route.name || ""),
|
||||
title: route.meta.title || "no-name",
|
||||
icon: (route as any).icon || route.meta?.icon,
|
||||
affix: true,
|
||||
keepAlive: route.meta.keepAlive || false,
|
||||
});
|
||||
|
||||
@@ -261,10 +261,18 @@ onUnmounted(() => {
|
||||
.external-link-badge {
|
||||
font-size: 10px;
|
||||
font-weight: 400;
|
||||
background-color: #409EFF;
|
||||
background-color: var(--el-color-primary);
|
||||
color: #ffffff;
|
||||
padding: 1px 4px;
|
||||
border-radius: 2px;
|
||||
line-height: 1.2;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
// 暗色主题适配 - 使用项目标准的暗色主题选择器
|
||||
html.dark .external-link-badge {
|
||||
background-color: var(--el-color-primary-dark-2);
|
||||
color: var(--el-text-color-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user