@@ -2,7 +2,7 @@
|
||||
* 统一导航配置
|
||||
* Header.tsx 和 Sidebar.tsx 共享此数据源,避免路由配置重复
|
||||
*/
|
||||
import React from "react";
|
||||
import React from "react"
|
||||
import {
|
||||
DashboardOutlined,
|
||||
FileOutlined,
|
||||
@@ -17,20 +17,20 @@ import {
|
||||
CrownOutlined,
|
||||
UnorderedListOutlined,
|
||||
UserOutlined,
|
||||
} from "@ant-design/icons";
|
||||
} from "@ant-design/icons"
|
||||
|
||||
/** 导航项类型 */
|
||||
export interface NavItem {
|
||||
key: string;
|
||||
label: string;
|
||||
path: string;
|
||||
icon: React.ReactNode;
|
||||
key: string
|
||||
label: string
|
||||
path: string
|
||||
icon: React.ReactNode
|
||||
}
|
||||
|
||||
/** 导航分组类型 */
|
||||
export interface NavGroup {
|
||||
title: string;
|
||||
items: NavItem[];
|
||||
title: string
|
||||
items: NavItem[]
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -105,7 +105,7 @@ export const NAV_ITEMS: NavItem[] = [
|
||||
path: "/app/tasks",
|
||||
icon: React.createElement(UnorderedListOutlined),
|
||||
},
|
||||
];
|
||||
]
|
||||
|
||||
/** 侧边栏导航分组(Sidebar 分组列表使用) */
|
||||
export const NAV_GROUPS: NavGroup[] = [
|
||||
@@ -202,4 +202,4 @@ export const NAV_GROUPS: NavGroup[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user