-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
400 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
|
||
export type IRoute = Record<string, { | ||
label: string // 标题 | ||
path: string // 路径 | ||
showPath?: string // 实际展示的对应menu的path,在menu中可能是hide的然后展示其他menu active状态 | ||
element: React.ReactNode // 路由对应的页面组件 | ||
dontNeedMenu?: boolean // 不需要左侧menu | ||
}> | ||
|
||
export type IMenuItem = { | ||
label: string | ||
path: string | ||
item?: IMenuItem[] | ||
showPath?: string | ||
hideItem?: IMenuItem[] | ||
} | ||
|
||
export type IMenuList = { | ||
label: string | ||
icon: JSX.Element | ||
path?: string | ||
item?: IMenuItem[] | ||
hideItem?: IMenuItem[] | ||
}[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.