@maxtropy/v-components 0.1.4-beta.3 → 0.1.4-beta.4

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,6 +1,6 @@
1
+ import { Router } from 'vue-router';
1
2
  import { MenuItem } from '../../common/entity';
2
3
  import 'element-plus/es/components/menu/style/css';
3
- import { Router } from 'vue-router';
4
4
  interface Props {
5
5
  devMenu?: MenuItem;
6
6
  customClass?: string;
@@ -1,5 +1,7 @@
1
1
  import { MenuItem, MenuItemProps } from '../common/entity';
2
+ export declare const uniqueSearchKey = "_key_";
2
3
  export declare function getMenuMap(list: MenuItemProps[]): Record<string, MenuItem>;
3
4
  export declare function inserDataOfWeight(list: MenuItem[], data: MenuItem): void;
4
5
  export declare function getThirdLevelPathToNodeMap(list?: MenuItemProps[]): Record<string, MenuItemProps>;
5
- export declare function list2Tree(list?: MenuItemProps[]): MenuItem[];
6
+ export declare function list2Tree(list: MenuItemProps[], parentId?: string): MenuItem[];
7
+ export declare function filterSearchWithKey(search: string, key: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.1.4-beta.3",
3
+ "version": "0.1.4-beta.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],