jiezhangxin-utils 0.0.3 → 0.0.5

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/README.md CHANGED
@@ -65,6 +65,11 @@ import { CacheKey } from 'jiezhangxin-utils';
65
65
  - `exportFile(exportLoading, exportUrl, name)` - 导出文件
66
66
  - `postExportFile(exportLoading, exportUrl, name, params)` - POST方式导出文件
67
67
  - `getFileTypeFromUrlRegex(url)` - 从URL获取文件类型
68
+ - `extractPermissions(tree, options)` - 从树形菜单数据中提取所有按钮类型的权限 code,支持无限层级递归
69
+ - `formatMenuData(data, isMenu = false)` - 格式化菜单数据,支持无限层级递归
70
+ - `formatMenuDataToTree(data)` - 格式化菜单数据为树形结构(0.0.5)
71
+ - `PermissionPlugin` - Vue 权限插件,用于全局注册 v-permission 指令和 $hasPermission 方法(0.0.5)
72
+
68
73
 
69
74
  ### Cookie相关
70
75