@zjlab-fe/data-hub-ui 0.17.3 → 0.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/menu/index.d.ts +2 -1
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type MenuType = 'link' | 'default';
|
|
2
3
|
export type MenuItem = {
|
|
3
4
|
label: string;
|
|
4
5
|
key: string;
|
|
5
6
|
type?: MenuType;
|
|
6
7
|
icon?: React.ReactNode;
|
|
7
|
-
activeicon?: React.ReactNode;
|
|
8
8
|
children?: Array<MenuItem>;
|
|
9
9
|
};
|
|
10
10
|
export type IProps = {
|
|
@@ -13,6 +13,7 @@ export type IProps = {
|
|
|
13
13
|
onCollapse?: (collapsed: boolean) => void;
|
|
14
14
|
onClick?: (item: MenuItem) => void;
|
|
15
15
|
onSelect?: (key: string | null) => void;
|
|
16
|
+
selectedKeys?: string[];
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* 左侧菜单
|