@fmdeui/fmui 1.0.36 → 1.0.37

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.
Files changed (51) hide show
  1. package/es/index.d.ts +1 -3
  2. package/es/index.mjs +0 -5
  3. package/es/packages/components/fm-layout/src/navBars/topBar/userNews.vue2.mjs +3 -3
  4. package/es/packages/hooks/other.mjs +4 -3
  5. package/es/router/index.d.ts +2 -12
  6. package/es/{make-installer.css → version.css} +1 -2
  7. package/index.css +1 -65
  8. package/index.js +10 -318
  9. package/index.min.css +1 -2
  10. package/index.min.js +6 -6
  11. package/index.min.mjs +6 -6
  12. package/index.mjs +8 -311
  13. package/lib/component.css +1 -2
  14. package/lib/index.d.ts +1 -3
  15. package/lib/index.js +3 -18
  16. package/lib/packages/components/fm-layout/src/navBars/topBar/userNews.vue2.js +3 -3
  17. package/lib/packages/hooks/other.js +6 -5
  18. package/lib/router/index.d.ts +2 -12
  19. package/locale/en.js +1 -1
  20. package/locale/en.min.js +1 -1
  21. package/locale/en.min.mjs +1 -1
  22. package/locale/en.mjs +1 -1
  23. package/locale/zh-cn.js +1 -1
  24. package/locale/zh-cn.min.js +1 -1
  25. package/locale/zh-cn.min.mjs +1 -1
  26. package/locale/zh-cn.mjs +1 -1
  27. package/package.json +1 -1
  28. package/es/node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress/nprogress.css.mjs +0 -3
  29. package/es/packages/router/backEnd.mjs +0 -138
  30. package/es/packages/router/createRouter.mjs +0 -15
  31. package/es/packages/router/frontEnd.mjs +0 -80
  32. package/es/packages/router/index.mjs +0 -63
  33. package/es/packages/router/route.mjs +0 -28
  34. package/es/packages/router/utils.mjs +0 -37
  35. package/es/router/backEnd.d.ts +0 -63
  36. package/es/router/createRouter.d.ts +0 -7
  37. package/es/router/frontEnd.d.ts +0 -61
  38. package/es/router/route.d.ts +0 -60
  39. package/es/router/utils.d.ts +0 -14
  40. package/lib/node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress/nprogress.css.js +0 -7
  41. package/lib/packages/router/backEnd.js +0 -149
  42. package/lib/packages/router/createRouter.js +0 -17
  43. package/lib/packages/router/frontEnd.js +0 -90
  44. package/lib/packages/router/index.js +0 -75
  45. package/lib/packages/router/route.js +0 -30
  46. package/lib/packages/router/utils.js +0 -40
  47. package/lib/router/backEnd.d.ts +0 -63
  48. package/lib/router/createRouter.d.ts +0 -7
  49. package/lib/router/frontEnd.d.ts +0 -61
  50. package/lib/router/route.d.ts +0 -60
  51. package/lib/router/utils.d.ts +0 -14
@@ -1,60 +0,0 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
- /**
3
- * 建议:路由 path 路径与文件夹名称相同,找文件可浏览器地址找,方便定位文件位置
4
- *
5
- * 路由meta对象参数说明
6
- * meta: {
7
- * title: 菜单栏及 tagsView 栏、菜单搜索名称(国际化)
8
- * isLink: 是否超链接菜单,开启外链条件,`1、isLink: 链接地址不为空 2、isIframe:false`
9
- * isHide: 是否隐藏此路由
10
- * isKeepAlive: 是否缓存组件状态
11
- * isAffix: 是否固定在 tagsView 栏上
12
- * isIframe: 是否内嵌窗口,开启条件,`1、isIframe:true 2、isLink:链接地址不为空`
13
- * roles: 当前路由权限标识,取角色管理。控制路由显示、隐藏。超级管理员:admin 普通角色:common
14
- * icon: 菜单、tagsView 图标,阿里:加 `iconfont xxx`,fontawesome:加 `fa xxx`
15
- * }
16
- */
17
- declare module 'vue-router' {
18
- interface RouteMeta {
19
- title?: string;
20
- isLink?: string;
21
- isHide?: boolean;
22
- isKeepAlive?: boolean;
23
- isAffix?: boolean;
24
- isIframe?: boolean;
25
- roles?: string[];
26
- icon?: string;
27
- isPublic?: boolean;
28
- }
29
- }
30
- /**
31
- * 定义动态路由
32
- * 前端添加路由,请在顶级节点的 `children 数组` 里添加
33
- * @description 未开启 isRequestRoutes 为 true 时使用(前端控制路由),开启时第一个顶级 children 的路由将被替换成接口请求回来的路由数据
34
- * @description 各字段请查看 `/@/views/system/menu/component/addMenu.vue 下的 ruleForm`
35
- * @returns 返回路由菜单数据
36
- */
37
- export declare let dynamicRoutes: Array<RouteRecordRaw>;
38
- /**
39
- * 定义404、401界面
40
- * @link 参考:https://next.router.vuejs.org/zh/guide/essentials/history-mode.html#netlify
41
- */
42
- export declare let notFoundAndNoPower: Array<RouteRecordRaw>;
43
- /**
44
- * 定义静态路由(默认路由)
45
- * 此路由不要动,前端添加路由的话,请在 `dynamicRoutes 数组` 中添加
46
- * @description 前端控制直接改 dynamicRoutes 中的路由,后端控制不需要修改,请求接口路由数据时,会覆盖 dynamicRoutes 第一个顶级 children 的内容(全屏,不包含 layout 中的路由出口)
47
- * @returns 返回路由菜单数据
48
- */
49
- export declare let staticRoutes: Array<RouteRecordRaw>;
50
- /**
51
- * 配置路由
52
- * @param options 路由配置选项
53
- */
54
- export declare function configureRoutes(options: {
55
- dynamicRoutes?: Array<RouteRecordRaw>;
56
- staticRoutes?: Array<RouteRecordRaw>;
57
- notFoundAndNoPower?: Array<RouteRecordRaw>;
58
- pathPrefix?: string;
59
- merge?: boolean;
60
- }): void;
@@ -1,14 +0,0 @@
1
- /**
2
- * 路由多级嵌套数组处理成一维数组
3
- * @param arr 传入路由菜单数据数组
4
- * @returns 返回处理后的一维路由菜单数组
5
- */
6
- export declare function formatFlatteningRoutes(arr: any): any;
7
- /**
8
- * 一维数组处理成多级嵌套数组(只保留二级:也就是二级以上全部处理成只有二级,keep-alive 支持二级缓存)
9
- * @description isKeepAlive 处理 `name` 值,进行缓存。顶级关闭,全部不缓存
10
- * @link 参考:https://v3.cn.vuejs.org/api/built-in-components.html#keep-alive
11
- * @param arr 处理后的一维路由菜单数组
12
- * @returns 返回将一维数组重新处理成 `定义动态路由(dynamicRoutes)` 的格式
13
- */
14
- export declare function formatTwoStageRoutes(arr: any): any;