feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 9fc5fd212d
commit 28e924e371
242 changed files with 9242 additions and 5043 deletions
+10 -2
View File
@@ -90,7 +90,11 @@ export default function LobeHubIcon({ iconName, size = 14 }) {
if (typeof iconName === 'string') iconName = iconName.trim();
// 如果没有图标名称,返回 Avatar
if (!iconName) {
return <Avatar size='extra-extra-small'>?</Avatar>;
return (
<Avatar size={size} gap={0} style={{ fontSize: size * 0.65 }}>
?
</Avatar>
);
}
// 解析组件路径与点号链式属性
@@ -115,7 +119,11 @@ export default function LobeHubIcon({ iconName, size = 14 }) {
(typeof IconComponent !== 'function' && typeof IconComponent !== 'object')
) {
const firstLetter = String(iconName).charAt(0).toUpperCase();
return <Avatar size='extra-extra-small'>{firstLetter}</Avatar>;
return (
<Avatar size={size} gap={0} style={{ fontSize: size * 0.65 }}>
{firstLetter}
</Avatar>
);
}
// 解析点号链式属性,形如:key={...}、key='...'、key="..."、key=123、key、key=true/false