@gingkoo/pandora-explorer 0.0.1-alpha.10 → 0.0.1-alpha.12

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,3 +1,3 @@
1
1
  import './index.less';
2
- declare const ExplorerHead: () => import("react/jsx-runtime").JSX.Element;
2
+ declare const ExplorerHead: (props: any) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ExplorerHead;
@@ -1,4 +1,7 @@
1
1
  import './index.less';
2
2
  import { ExplorerProps } from '../';
3
- declare const Layout: (props: ExplorerProps) => import("react/jsx-runtime").JSX.Element;
3
+ interface ExploreLayout extends ExplorerProps {
4
+ loadNode: (key: string) => Promise<any>;
5
+ }
6
+ declare const Layout: (props: ExploreLayout) => import("react/jsx-runtime").JSX.Element;
4
7
  export default Layout;
package/lib/es/types.d.ts CHANGED
@@ -29,6 +29,12 @@ export interface ExplorerProps {
29
29
  fileList: ExplorerItem[];
30
30
  }>;
31
31
  loadRightClickMenu?: (menu: MenuItem[], param: ExplorerItem) => Promise<MenuItem[]> | MenuItem[];
32
+ createFile?: (config?: {
33
+ path: string;
34
+ name: string;
35
+ suffix: string;
36
+ }) => {};
37
+ onDownload?: (file: File, param: ExplorerItem) => void;
32
38
  onCheck?: (keys: string[], param: ExplorerItem[]) => void;
33
39
  onChange?: (data: ExplorerItem[]) => void;
34
40
  onMenuClick?: (key: string, param: ExplorerItem) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gingkoo/pandora-explorer",
3
- "version": "0.0.1-alpha.10",
3
+ "version": "0.0.1-alpha.12",
4
4
  "description": "文件资源管理器",
5
5
  "main": "lib/es/index.js",
6
6
  "module": "lib/es/index.js",