@gingkoo/pandora-explorer 0.0.1-alpha.6 → 0.0.1-alpha.60
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/lib/es/components/Dropdown/index.d.ts +1 -0
- package/lib/es/components/icons/index.d.ts +2 -0
- package/lib/es/components/menu/index.d.ts +1 -0
- package/lib/es/components/notdata/index.d.ts +2 -0
- package/lib/es/components/select-box/index.d.ts +2 -0
- package/lib/es/components/tile/index.d.ts +1 -1
- package/lib/es/components/tree/components/contextTypes.d.ts +2 -2
- package/lib/es/components/tree/index.d.ts +7 -3
- package/lib/es/css.d.ts +7 -7
- package/lib/es/index.js +2095 -1153
- package/lib/es/index.js.map +1 -1
- package/lib/es/layout/components/explorer-head/index.d.ts +1 -1
- package/lib/es/layout/components/explorer-menu/index.d.ts +1 -1
- package/lib/es/layout/index.d.ts +5 -1
- package/lib/es/store.d.ts +18 -0
- package/lib/es/types.d.ts +11 -4
- package/lib/es/utils/helper.d.ts +3 -0
- package/package.json +6 -4
- package/lib/es/imgs/css.png +0 -0
- package/lib/es/imgs/folder_win11_open.png +0 -0
- package/lib/es/imgs/md.png +0 -0
- package/lib/es/imgs/menu_icon.png +0 -0
- package/lib/es/index.css +0 -2169
- package/lib/umd/index.js +0 -30644
- package/lib/umd/index.js.map +0 -1
- package/lib/umd/index.min.js +0 -15
- package/lib/umd/index.min.js.map +0 -1
|
@@ -29,3 +29,5 @@ export declare function SuffixIcon({ className, suffix }: {
|
|
|
29
29
|
className: string;
|
|
30
30
|
suffix: string;
|
|
31
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function UnknownSvg(): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function UploadSvg(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
|
21
|
-
showIcon
|
|
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?:
|
|
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;
|
package/lib/es/css.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const flush: () => void, hydrate: (ids: string[]) => void, cx: (...classNames: import("@emotion/css/create-instance").ClassNamesArg[]) => string, merge: (className: string) => string, getRegisteredStyles: (registeredStyles: string[], className: string) => string, injectGlobal: {
|
|
2
|
-
(template: TemplateStringsArray, ...args: import("@emotion/
|
|
3
|
-
(...args: import("@emotion/
|
|
2
|
+
(template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
|
|
3
|
+
(...args: import("@emotion/css/create-instance").CSSInterpolation[]): void;
|
|
4
4
|
}, keyframes: {
|
|
5
|
-
(template: TemplateStringsArray, ...args: import("@emotion/
|
|
6
|
-
(...args: import("@emotion/
|
|
5
|
+
(template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
6
|
+
(...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
7
7
|
}, css: {
|
|
8
|
-
(template: TemplateStringsArray, ...args: import("@emotion/
|
|
9
|
-
(...args: import("@emotion/
|
|
10
|
-
}, sheet: import("@emotion/css/create-instance").CSSStyleSheet, cache: import("@emotion/
|
|
8
|
+
(template: TemplateStringsArray, ...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
9
|
+
(...args: import("@emotion/css/create-instance").CSSInterpolation[]): string;
|
|
10
|
+
}, sheet: import("@emotion/css/create-instance").CSSStyleSheet, cache: import("@emotion/css/create-instance").EmotionCache;
|