feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user