继续完善页面布局
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
// 统一类型定义文件,避免重复定义冲突
|
||||
|
||||
export type MenuItem = {
|
||||
id: string
|
||||
title: string
|
||||
icon: string
|
||||
path?: string
|
||||
children?: MenuItem[]
|
||||
}
|
||||
|
||||
export type UserInfo = {
|
||||
nickname: string
|
||||
role: string
|
||||
@@ -17,4 +9,29 @@ export type TagItem = {
|
||||
path: string
|
||||
title: string
|
||||
isAffix?: boolean
|
||||
}
|
||||
}
|
||||
|
||||
export type MenuChild = {
|
||||
id: string
|
||||
title: string
|
||||
path: string
|
||||
}
|
||||
|
||||
export type MenuGroup = {
|
||||
title: string
|
||||
children: MenuChild[]
|
||||
}
|
||||
|
||||
export type MenuItem = {
|
||||
id: string
|
||||
title: string
|
||||
icon: string // 你的 svg 路径
|
||||
path?: string
|
||||
groups?: MenuGroup[]
|
||||
}
|
||||
|
||||
export type TabItem = {
|
||||
id: string
|
||||
title: string
|
||||
path: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user