fix(admin): 套餐审核导航恢复与子菜单一致的样式
- 移除对「套餐审核」文字的强制白色处理,文字随菜单主题正常继承 normal/hover/selected 颜色 - 徽章仅作为待审数量提示图标,pendingCount>0 时才显示,不参与文字着色 Co-Authored-By: WorkBuddy <workbuddy@tencent.com>
This commit is contained in:
@@ -258,9 +258,10 @@ function attachPackageAuditBadge(items: MenuProps['items'], pendingCount: number
|
||||
return {
|
||||
...item,
|
||||
label: (
|
||||
<Badge count={pendingCount} size="small" offset={[8, 0]}>
|
||||
<span style={{ color: '#ffffffa6' }}>套餐审核</span>
|
||||
</Badge>
|
||||
<span style={{ display: 'inline-flex', alignItems: 'center', gap: 6 }}>
|
||||
套餐审核
|
||||
{pendingCount > 0 && <Badge count={pendingCount} size="small" />}
|
||||
</span>
|
||||
),
|
||||
} as MenuItem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user