@gingkoo/pandora-explorer 0.0.1-alpha.35 → 0.0.1-alpha.37

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.
@@ -17,8 +17,8 @@ export type NodeMouseEventHandler<TreeDataType extends BasicDataNode = DataNode,
17
17
  export type NodeDragEventHandler<TreeDataType extends BasicDataNode = DataNode, T = HTMLDivElement> = (e: React.DragEvent<T>, node: NodeInstance<TreeDataType>, outsideTree?: boolean) => void;
18
18
  export interface TreeContextProps<TreeDataType extends BasicDataNode = DataNode> {
19
19
  prefixCls: string;
20
- selectable: boolean;
21
- showIcon: boolean;
20
+ selectable?: boolean;
21
+ showIcon?: boolean;
22
22
  icon: IconType;
23
23
  switcherIcon: IconType;
24
24
  draggable?: DraggableConfig;
@@ -1,6 +1,5 @@
1
1
  import './index.less';
2
2
  import { ReactNode } from 'react';
3
- import { MenuItem } from '../menu';
4
3
  export interface TreeItem {
5
4
  key: string;
6
5
  title: string;
@@ -8,7 +7,7 @@ export interface TreeItem {
8
7
  suffix?: string;
9
8
  api?: boolean;
10
9
  level?: string;
11
- menu?: string | (string | MenuItem)[];
10
+ menu?: boolean;
12
11
  children?: TreeItem[];
13
12
  isLeaf?: boolean;
14
13
  [key: string]: any;