@gingkoo/pandora-explorer 0.0.1-alpha.97 → 0.0.1-alpha.99
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/icons/index.d.ts +1 -0
- package/lib/es/components/menu/index.d.ts +1 -1
- package/lib/es/components/menu/menulist.d.ts +2 -0
- package/lib/es/index.d.ts +2 -1
- package/lib/es/index.js +61 -9
- package/lib/es/index.js.map +1 -1
- package/lib/es/store.d.ts +1 -1
- package/lib/es/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import './index.less';
|
|
2
|
+
export declare const IconsMap: Map<string, import("react/jsx-runtime").JSX.Element>;
|
|
2
3
|
export declare function FavoriteSvg(): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export declare function SpaceSvg(): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export declare function NetdiskSvg(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
interface MenuProps {
|
|
4
4
|
menu?: MenuItem[];
|
|
5
5
|
onChange?: (key: string, parent?: MenuItem) => any;
|
|
6
|
-
loadMenu?: (item: MenuItem) => MenuItem;
|
|
6
|
+
loadMenu?: (item: MenuItem) => MenuItem | MenuItem[];
|
|
7
7
|
store?: any;
|
|
8
8
|
}
|
|
9
9
|
export interface MenuItem {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare function getMenu(key: string): import("react").ComponentType<{}>;
|
|
3
3
|
export declare function registerMenu(key: string, component: any): void;
|
|
4
|
+
export declare function addMenuItem(key: string | string[], menu: any[]): void;
|
|
5
|
+
export declare function removeMenuItem(key: string | string[], menuItem: string[]): void;
|
package/lib/es/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import Explorer from './explorer';
|
|
2
2
|
import ExplorerMenu from './components/menu';
|
|
3
|
-
export { registerMenu } from './components/menu/menulist';
|
|
3
|
+
export { registerMenu, addMenuItem, removeMenuItem } from './components/menu/menulist';
|
|
4
4
|
export { Icons } from './explorer';
|
|
5
|
+
export { IconsMap } from './components/icons';
|
|
5
6
|
export * from './types';
|
|
6
7
|
export * from './enum';
|
|
7
8
|
export { ExplorerMenu, Explorer };
|