@gingkoo/pandora-explorer 0.0.1-alpha.84 → 0.0.1-alpha.86

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.
@@ -1,4 +1,5 @@
1
1
  import './index.less';
2
+ import { ReactNode } from 'react';
2
3
  interface MenuProps {
3
4
  menu?: MenuItem[];
4
5
  onChange?: (key: string, parent?: MenuItem) => any;
@@ -9,7 +10,7 @@ export interface MenuItem {
9
10
  key: string;
10
11
  title: string;
11
12
  type?: string;
12
- icon?: any;
13
+ icon?: string | ReactNode;
13
14
  children: MenuItem | null;
14
15
  [key: string]: any;
15
16
  }
@@ -1,8 +1,7 @@
1
1
  import './index.less';
2
2
  import { ReactNode } from 'react';
3
3
  /***
4
- *
5
- * 功能:选中,拖拽上传,框选
4
+ * 功能拆封
6
5
  *
7
6
  */
8
7
  interface SelectBoxProps {
@@ -18,6 +17,7 @@ interface SelectBoxProps {
18
17
  checkType?: 'file' | 'folder';
19
18
  onChange: (v: any) => any;
20
19
  children: ReactNode;
20
+ onMouseup: (v: any) => void;
21
21
  [key: string]: any;
22
22
  }
23
23
  declare const SelectBox: (props: SelectBoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { FC } from 'react';
1
2
  interface TileProps {
2
3
  className?: string;
3
4
  checks: any[];
@@ -7,5 +8,5 @@ interface TileProps {
7
8
  onRename?: (key: string, value: string | boolean, param: any) => void;
8
9
  [key: string]: any;
9
10
  }
10
- export default function Tile(props: TileProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
11
+ declare const Tile: FC<TileProps>;
12
+ export default Tile;
@@ -1,5 +1,5 @@
1
1
  import './index.less';
2
- import { ReactNode } from 'react';
2
+ import React, { ReactNode } from 'react';
3
3
  export interface TreeItem {
4
4
  key: string;
5
5
  title: string;
@@ -39,5 +39,5 @@ export interface TreeProps {
39
39
  onExpand?: (data: string[]) => void;
40
40
  [key: string]: any;
41
41
  }
42
- declare const _default: (props: TreeProps) => import("react/jsx-runtime").JSX.Element;
42
+ declare const _default: React.ForwardRefExoticComponent<Omit<TreeProps, "ref"> & React.RefAttributes<unknown>>;
43
43
  export default _default;
@@ -1,8 +1,11 @@
1
- declare const VirtualScroll: ({ className, item, itemHeight, renderItem, }: {
1
+ import { FC } from 'react';
2
+ interface VirtualProps {
3
+ ref?: any;
2
4
  className: string;
3
5
  item: any[];
4
6
  itemHeight: number;
5
7
  renderItem: (v: any, i: number, end: boolean) => any;
6
- onScroll?: () => any;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
+ onScroll?: (v?: any) => any;
9
+ }
10
+ declare const VirtualScroll: FC<VirtualProps>;
8
11
  export default VirtualScroll;
package/lib/es/enum.d.ts CHANGED
@@ -9,3 +9,4 @@ export declare enum ApiStatusEnum {
9
9
  EMPTY = 4,
10
10
  SUCCESS = 5
11
11
  }
12
+ export declare const ImgSuffix: string[];