-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
1 parent
c24e0ef
commit bbc2ede
Showing
8 changed files
with
26 additions
and
39 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
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 |
---|---|---|
@@ -1,25 +1,17 @@ | ||
// import { ComputedRef } from 'vue'; | ||
// import { ThemeEnum } from '/@/enums/appEnum'; | ||
// import { MenuModeEnum } from '/@/enums/menuEnum'; | ||
export type Key = string | number; | ||
export interface MenuState { | ||
// 默认选中的列表 | ||
defaultSelectedKeys: string[]; | ||
|
||
// 模式 | ||
// mode: MenuModeEnum; | ||
|
||
// // 主题 | ||
// theme: ComputedRef<ThemeEnum> | ThemeEnum; | ||
defaultSelectedKeys: Key[]; | ||
|
||
// 缩进 | ||
inlineIndent?: number; | ||
|
||
// 展开数组 | ||
openKeys: string[]; | ||
openKeys: Key[]; | ||
|
||
// 当前选中的菜单项 key 数组 | ||
selectedKeys: string[]; | ||
selectedKeys: Key[]; | ||
|
||
// 收缩状态下展开的数组 | ||
collapsedOpenKeys: string[]; | ||
collapsedOpenKeys: Key[]; | ||
} |
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