标记待开发功能范围
This commit is contained in:
@@ -16,6 +16,7 @@ export type ShellNavItem = {
|
||||
label: string;
|
||||
to: string;
|
||||
icon: ComponentType<{ size?: number; strokeWidth?: number }>;
|
||||
pending?: boolean;
|
||||
};
|
||||
|
||||
export type ShellNavSection = {
|
||||
@@ -84,9 +85,10 @@ export function AppShell({
|
||||
const Icon = item.icon;
|
||||
|
||||
return (
|
||||
<NavLink key={item.to} to={item.to} end title={item.label}>
|
||||
<NavLink key={item.to} to={item.to} end title={item.pending ? `${item.label}(待开发)` : item.label}>
|
||||
<Icon size={17} strokeWidth={2.1} />
|
||||
<span>{item.label}</span>
|
||||
<span className="side-nav-label">{item.label}</span>
|
||||
{item.pending ? <span className="dev-status-badge">待开发</span> : null}
|
||||
</NavLink>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user