@gingkoo/pandora-explorer 0.0.1-alpha.7 → 0.0.1-alpha.71

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.
@@ -15,6 +15,7 @@ interface DropdownProps {
15
15
  y?: number;
16
16
  };
17
17
  style?: any;
18
+ onContextMenu?: any;
18
19
  }
19
20
  export default function Dropdown(props: DropdownProps): import("react/jsx-runtime").JSX.Element;
20
21
  export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare function DetailsInfo(props: any): import("react/jsx-runtime").JSX.Element;
3
+ export default DetailsInfo;
@@ -22,10 +22,15 @@ export declare function AngleRightSvg(): import("react/jsx-runtime").JSX.Element
22
22
  export declare function OutdentSvg(): import("react/jsx-runtime").JSX.Element;
23
23
  export declare function CaretRight(): import("react/jsx-runtime").JSX.Element;
24
24
  export declare function CircleCheckSvg(): import("react/jsx-runtime").JSX.Element;
25
+ export declare function DoneSvg(): import("react/jsx-runtime").JSX.Element;
26
+ export declare function ProcessingSvg(): import("react/jsx-runtime").JSX.Element;
25
27
  export declare function ShareLinkSvg(): import("react/jsx-runtime").JSX.Element;
26
28
  export declare function UpdateSvg(): import("react/jsx-runtime").JSX.Element;
27
29
  export declare function NullDataSvg(): import("react/jsx-runtime").JSX.Element;
28
- export declare function SuffixIcon({ className, suffix }: {
30
+ export declare function SuffixIcon({ className, suffix, status, }: {
29
31
  className: string;
30
32
  suffix: string;
33
+ status?: 'done' | 'processing';
31
34
  }): import("react/jsx-runtime").JSX.Element;
35
+ export declare function UnknownSvg(): import("react/jsx-runtime").JSX.Element;
36
+ export declare function UploadSvg(): import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,8 @@ import './index.less';
2
2
  interface MenuProps {
3
3
  menu?: MenuItem[];
4
4
  onChange?: (key: string) => any;
5
+ loadMenu?: (item: MenuItem) => MenuItem;
6
+ store?: any;
5
7
  }
6
8
  export interface MenuItem {
7
9
  key: string;
@@ -0,0 +1,2 @@
1
+ import './index.less';
2
+ export default function NotData(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
+ import './index.less';
1
2
  import { ReactNode } from 'react';
2
3
  interface SelectBoxProps {
3
4
  checks: string[];
5
+ getContainer: string;
4
6
  dataClass?: string;
5
7
  selectClass: string;
6
8
  className?: string;
@@ -4,7 +4,7 @@ interface TileProps {
4
4
  onMenuClick?: (key: string, param: any) => void;
5
5
  onDblclick?: (key: string, param: any) => void;
6
6
  onSelect?: (key: string, param: any) => void;
7
- onRename?: (key: string, value: string, param: any) => void;
7
+ onRename?: (key: string, value: string | boolean, param: any) => void;
8
8
  [key: string]: any;
9
9
  }
10
10
  export default function Tile(props: TileProps): import("react/jsx-runtime").JSX.Element;
@@ -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?: any;
12
11
  children?: TreeItem[];
13
12
  isLeaf?: boolean;
14
13
  [key: string]: any;
@@ -22,17 +21,22 @@ export interface TreeProps {
22
21
  animation?: boolean;
23
22
  defaultmenu?: 'basis' | 'file';
24
23
  defaultExpandedKeys?: string[];
24
+ expandedKeys?: string[];
25
25
  autoExpandParent?: boolean;
26
26
  columns?: any[];
27
27
  checks?: string[];
28
+ loadedKeys?: string[];
28
29
  icon?: (v: any, className: string) => ReactNode;
29
30
  onChecks?: (checks: string[], param?: TreeItem[]) => void;
30
31
  onSelect?: (key: string) => any;
31
32
  onChange?: (data: TreeItem[]) => void;
32
33
  titleRender?: (props: any) => any;
33
- onMenuClick?: (key: string, props: any) => void;
34
+ onMenuClick?: (key: string, props: any) => 'update' | void;
35
+ onDblclick?: (key: string, props: any) => void;
34
36
  loadData?: (key: string) => Promise<TreeItem[]> | TreeItem[];
35
37
  onRename?: (key: string, value: string, props?: TreeItem) => boolean | void;
38
+ filterData?: (node: any) => boolean;
39
+ onExpand?: (data: string[]) => void;
36
40
  [key: string]: any;
37
41
  }
38
42
  declare const _default: (props: TreeProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,5 +2,6 @@ import './index.less';
2
2
  import './components/tree/css/index.less';
3
3
  import { FC } from 'react';
4
4
  import { ExplorerProps } from './types';
5
+ export declare const Icons: (v: any, className: string, style?: any) => import("react/jsx-runtime").JSX.Element;
5
6
  declare const Explorer: FC<ExplorerProps>;
6
7
  export default Explorer;
package/lib/es/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import Explorer from './explorer';
2
2
  export { registerMenu } from './components/menu/menulist';
3
+ export { Icons } from './explorer';
3
4
  export * from './types';
4
5
  export * from './enum';
5
6
  export default Explorer;