@fmdeui/fmui 1.0.33 → 1.0.35

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 (49) hide show
  1. package/README.md +1 -1
  2. package/es/component.mjs +3 -1
  3. package/es/components/fm-settings/index.d.ts +7 -0
  4. package/es/components/fm-settings/src/index.vue.d.ts +8 -0
  5. package/es/components/fm-settings/style/css.d.ts +0 -0
  6. package/es/components/fm-settings/style/index.d.ts +0 -0
  7. package/es/components/index.d.ts +1 -0
  8. package/es/index.mjs +1 -1
  9. package/es/packages/components/fm-settings/index.mjs +6 -0
  10. package/es/packages/components/fm-settings/src/index.vue.mjs +5 -0
  11. package/es/packages/components/fm-settings/src/index.vue2.mjs +1904 -0
  12. package/es/packages/components/index.mjs +1 -0
  13. package/es/packages/router/index.mjs +1 -1
  14. package/es/packages/router/route.mjs +4 -123
  15. package/es/router/index.d.ts +2 -2
  16. package/es/router/route.d.ts +0 -5
  17. package/index.js +2035 -264
  18. package/index.min.js +10 -5
  19. package/index.min.mjs +10 -5
  20. package/index.mjs +2033 -261
  21. package/lib/component.js +3 -1
  22. package/lib/components/fm-settings/index.d.ts +7 -0
  23. package/lib/components/fm-settings/src/index.vue.d.ts +8 -0
  24. package/lib/components/fm-settings/style/css.d.ts +0 -0
  25. package/lib/components/fm-settings/style/index.d.ts +0 -0
  26. package/lib/components/index.d.ts +1 -0
  27. package/lib/{version.css → defaults.css} +2 -2
  28. package/lib/index.js +0 -1
  29. package/lib/packages/components/fm-settings/index.js +8 -0
  30. package/lib/packages/components/fm-settings/src/index.vue.js +9 -0
  31. package/lib/packages/components/fm-settings/src/index.vue2.js +1908 -0
  32. package/lib/packages/components/index.js +4 -2
  33. package/lib/packages/router/index.js +0 -1
  34. package/lib/packages/router/route.js +3 -123
  35. package/lib/router/index.d.ts +2 -2
  36. package/lib/router/route.d.ts +0 -5
  37. package/locale/en.js +1 -1
  38. package/locale/en.min.js +1 -1
  39. package/locale/en.min.mjs +1 -1
  40. package/locale/en.mjs +1 -1
  41. package/locale/zh-cn.js +1 -1
  42. package/locale/zh-cn.min.js +1 -1
  43. package/locale/zh-cn.min.mjs +1 -1
  44. package/locale/zh-cn.mjs +1 -1
  45. package/package.json +1 -1
  46. package/theme-chalk/f-settings.css +1 -0
  47. package/theme-chalk/index.css +1 -1
  48. package/theme-chalk/src/index.scss +2 -1
  49. package/theme-chalk/src/settings.scss +157 -0
@@ -9,3 +9,4 @@ export { FQueryCondition } from './query-condition/index.mjs';
9
9
  export { FForm } from './form/index.mjs';
10
10
  export { elSvg } from './svgIcon/index.mjs';
11
11
  export { FLayout } from './fm-layout/index.mjs';
12
+ export { FSettings } from './fm-settings/index.mjs';
@@ -2,7 +2,7 @@ import { storeToRefs } from 'pinia';
2
2
  import { useRoutesList } from '../stores/routesList.mjs';
3
3
  import { useThemeConfig } from '../stores/themeConfig.mjs';
4
4
  import { Session, Local } from '../utils/storage.mjs';
5
- export { configureRoutes, setPathPrefix, staticRoutes } from './route.mjs';
5
+ export { configureRoutes, staticRoutes } from './route.mjs';
6
6
  import { initFrontEndControlRoutes } from './frontEnd.mjs';
7
7
  import { initBackEndControlRoutes } from './backEnd.mjs';
8
8
  export { setDynamicViewsModules } from './backEnd.mjs';
@@ -1,122 +1,6 @@
1
- let pathPrefix = "/@";
2
- function setPathPrefix(prefix) {
3
- pathPrefix = prefix;
4
- }
5
- function getPath(path) {
6
- return `${pathPrefix}${path}`;
7
- }
8
- let dynamicRoutes = [
9
- {
10
- path: "/",
11
- name: "/",
12
- component: () => import(getPath("/layout/index.vue")),
13
- redirect: "/dashboard/home",
14
- meta: {
15
- isKeepAlive: true
16
- },
17
- children: []
18
- },
19
- {
20
- path: "/llm/aiChat",
21
- name: "aiChat",
22
- component: () => import(getPath("/views/aiChat/index.vue")),
23
- meta: {
24
- title: "AI\u5BF9\u8BDD",
25
- isKeepAlive: true
26
- }
27
- },
28
- {
29
- path: "/platform/job/dashboard",
30
- name: "jobDashboard",
31
- component: () => import(getPath("/views/system/job/dashboard.vue")),
32
- meta: {
33
- title: "\u4EFB\u52A1\u770B\u677F",
34
- isLink: window.__env__.VITE_API_URL + "/schedule",
35
- isHide: true,
36
- isKeepAlive: true,
37
- isAffix: false,
38
- isIframe: true,
39
- icon: "ele-Clock"
40
- }
41
- },
42
- {
43
- path: "/develop/database/visual",
44
- name: "databaseVisual",
45
- component: () => import(getPath("/views/system/database/component/visualTable.vue")),
46
- meta: {
47
- title: "\u5E93\u8868\u53EF\u89C6\u5316",
48
- isHide: true,
49
- isKeepAlive: true,
50
- isAffix: false,
51
- // isIframe: true,
52
- icon: "ele-View"
53
- }
54
- },
55
- {
56
- path: "/report/view/:reportConfigId/:tagsViewName?",
57
- name: "sysReportView",
58
- component: () => import(getPath("/views/system/reportConfig/component/reportView.vue")),
59
- meta: {
60
- title: "\u62A5\u8868\u67E5\u770B",
61
- isHide: true,
62
- isKeepAlive: true,
63
- isAffix: false,
64
- isIframe: false,
65
- icon: ""
66
- }
67
- }
68
- ];
69
- let notFoundAndNoPower = [
70
- {
71
- path: "/:path(.*)*",
72
- name: "notFound",
73
- component: () => import(getPath("/views/error/404.vue")),
74
- meta: {
75
- title: "message.staticRoutes.notFound",
76
- isHide: true
77
- }
78
- },
79
- {
80
- path: "/401",
81
- name: "noPower",
82
- component: () => import(getPath("/views/error/401.vue")),
83
- meta: {
84
- title: "message.staticRoutes.noPower",
85
- isHide: true
86
- }
87
- }
88
- ];
89
- let staticRoutes = [
90
- {
91
- path: "/login",
92
- name: "login",
93
- component: () => import(getPath("/views/login/index.vue")),
94
- meta: {
95
- title: "Login",
96
- isPublic: true
97
- }
98
- }
99
- /**
100
- * 提示:写在这里的为全屏界面,不建议写在这里
101
- * 请写在 `dynamicRoutes` 路由数组中
102
- */
103
- // {
104
- // path: '/visualizingDemo1',
105
- // name: 'visualizingDemo1',
106
- // component: () => import('/@/views/visualizing/demo1.vue'),
107
- // meta: {
108
- // title: 'message.router.visualizingLinkDemo1',
109
- // },
110
- // },
111
- // {
112
- // path: '/visualizingDemo2',
113
- // name: 'visualizingDemo2',
114
- // component: () => import('/@/views/visualizing/demo2.vue'),
115
- // meta: {
116
- // title: 'message.router.visualizingLinkDemo2',
117
- // },
118
- // },
119
- ];
1
+ let dynamicRoutes = [];
2
+ let notFoundAndNoPower = [];
3
+ let staticRoutes = [];
120
4
  function configureRoutes(options) {
121
5
  if (options.dynamicRoutes) {
122
6
  if (options.merge) {
@@ -139,9 +23,6 @@ function configureRoutes(options) {
139
23
  notFoundAndNoPower = options.notFoundAndNoPower;
140
24
  }
141
25
  }
142
- if (options.pathPrefix) {
143
- setPathPrefix(options.pathPrefix);
144
- }
145
26
  }
146
27
 
147
- export { configureRoutes, dynamicRoutes, notFoundAndNoPower, setPathPrefix, staticRoutes };
28
+ export { configureRoutes, dynamicRoutes, notFoundAndNoPower, staticRoutes };
@@ -1,4 +1,4 @@
1
- import { configureRoutes, setPathPrefix, staticRoutes } from './route';
1
+ import { configureRoutes, staticRoutes } from './route';
2
2
  import { initFrontEndControlRoutes } from './frontEnd';
3
3
  import { initBackEndControlRoutes, setDynamicViewsModules } from './backEnd';
4
4
  import { router } from './createRouter';
@@ -9,4 +9,4 @@ import { Router } from 'vue-router';
9
9
  */
10
10
  export declare function initRouter(): Router;
11
11
  export default router;
12
- export { configureRoutes, staticRoutes, setPathPrefix, setDynamicViewsModules, initBackEndControlRoutes, initFrontEndControlRoutes };
12
+ export { configureRoutes, staticRoutes, setDynamicViewsModules, initBackEndControlRoutes, initFrontEndControlRoutes };
@@ -27,11 +27,6 @@ declare module 'vue-router' {
27
27
  isPublic?: boolean;
28
28
  }
29
29
  }
30
- /**
31
- * 设置路径前缀
32
- * @param prefix 路径前缀
33
- */
34
- export declare function setPathPrefix(prefix: string): void;
35
30
  /**
36
31
  * 定义动态路由
37
32
  * 前端添加路由,请在顶级节点的 `children 数组` 里添加