mooho-base-admin-plus 0.1.24 → 0.1.28

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 (55) hide show
  1. package/dist/mooho-base-admin-plus.es.js +138726 -0
  2. package/dist/mooho-base-admin-plus.umd.js +124 -0
  3. package/dist/style.css +1 -1
  4. package/package.json +2 -3
  5. package/src/api/customModel.js +1 -1
  6. package/src/api/dataSource.js +1 -1
  7. package/src/api/dataView.js +1 -1
  8. package/src/api/dictType.js +1 -1
  9. package/src/api/model.js +1 -1
  10. package/src/api/permission.js +1 -1
  11. package/src/api/process.js +1 -1
  12. package/src/api/system.js +1 -1
  13. package/src/components/view/form-setting-layout.vue +1 -1
  14. package/src/components/view/view-form-draggable.vue +1 -1
  15. package/src/i18n/locale/en-US.js +1 -1
  16. package/src/i18n/locale/lang.js +1 -1
  17. package/src/i18n/locale/zh-CN.js +1 -1
  18. package/src/i18n/locale.js +2 -2
  19. package/src/index.js +2 -2
  20. package/src/layouts/basic-layout/header-breadcrumb/index.vue +2 -2
  21. package/src/layouts/basic-layout/mixins/click-item.js +21 -21
  22. package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -13
  23. package/src/layouts/basic-layout/mixins/translate-title.js +11 -11
  24. package/src/layouts/basic-layout/tabs/index.vue +2 -2
  25. package/src/layouts/basic-layout/water-mark/index.vue +29 -29
  26. package/src/libs/random_str.js +10 -10
  27. package/src/libs/request/index.js +1 -1
  28. package/src/libs/system/index.js +2 -2
  29. package/src/libs/util.db.js +9 -11
  30. package/src/libs/water-mark.js +44 -44
  31. package/src/plugins/log/index.js +25 -0
  32. package/src/router/index.js +1 -1
  33. package/src/store/modules/admin/modules/db.js +5 -5
  34. package/src/store/modules/admin/modules/layout.js +1 -1
  35. package/src/store/modules/admin/modules/log.js +2 -2
  36. package/src/store/modules/admin/modules/menu.js +4 -4
  37. package/src/store/modules/admin/modules/page.js +3 -3
  38. package/src/styles/common.less +47 -47
  39. package/src/styles/default/index.less +6 -6
  40. package/src/styles/font/demo.css +539 -539
  41. package/src/styles/font/demo_index.html +372 -372
  42. package/src/styles/font/icon-demo/demo.css +539 -539
  43. package/src/styles/font/icon-demo/demo_index.html +423 -423
  44. package/src/styles/font/icon-demo/iconfont.css +61 -61
  45. package/src/styles/font/icon-demo/iconfont.svg +59 -59
  46. package/src/styles/font/iconfont.css +47 -47
  47. package/src/styles/font/iconfont.json +65 -65
  48. package/src/styles/font/ionicons.svg +869 -869
  49. package/src/styles/index.less +7 -7
  50. package/src/styles/layout/basic-layout/layout.less +527 -527
  51. package/src/styles/layout/basic-layout/menu.less +274 -274
  52. package/src/styles/layout/index.less +2 -2
  53. package/src/styles/setting.less +6 -6
  54. package/vite.config.js +19 -19
  55. package/dist/mooho-base-admin-plus.min.js +0 -94
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 菜单
3
3
  * */
4
- import * as lodash from 'lodash';
4
+ import { cloneDeep } from 'lodash';
5
5
  import {
6
6
  includeArray,
7
7
  setNativeMenuSider,
@@ -25,7 +25,7 @@ function filterMenu(menuList, access, lastList) {
25
25
  if (!menuAccess || includeArray(menuAccess, access)) {
26
26
  let newMenu = {};
27
27
  for (let i in menu) {
28
- if (i !== 'children') newMenu[i] = lodash.cloneDeep(menu[i]);
28
+ if (i !== 'children') newMenu[i] = cloneDeep(menu[i]);
29
29
  }
30
30
  if (menu.children && menu.children.length) newMenu.children = [];
31
31
 
@@ -214,7 +214,7 @@ export default {
214
214
  * @description 新增或修改某个侧边菜单的徽标
215
215
  * */
216
216
  setSiderMenuBadge(state, { path, badge }) {
217
- const siderMenuBadge = lodash.cloneDeep(state.siderMenuBadge);
217
+ const siderMenuBadge = cloneDeep(state.siderMenuBadge);
218
218
  const menuIndex = siderMenuBadge.findIndex(item => item.path === path);
219
219
  if (menuIndex >= 0) {
220
220
  siderMenuBadge[menuIndex] = badge;
@@ -240,7 +240,7 @@ export default {
240
240
  * @description 新增或修改某个顶栏菜单的徽标
241
241
  * */
242
242
  setHeaderMenuBadge(state, { path, badge }) {
243
- const headerMenuBadge = lodash.cloneDeep(state.headerMenuBadge);
243
+ const headerMenuBadge = cloneDeep(state.headerMenuBadge);
244
244
  const menuIndex = headerMenuBadge.findIndex(item => item.path === path);
245
245
  if (menuIndex >= 0) {
246
246
  headerMenuBadge[menuIndex] = badge;
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * 多标签页
3
3
  * */
4
- import * as lodash from 'lodash';
4
+ import { cloneDeep, get } from 'lodash';
5
5
  import router from '../../../../router';
6
6
  import Setting from '../../../../setting';
7
7
  import menuSider from '../../../../menu/sider';
8
8
  import { getAllSiderMenu, includeArray } from '../../../../libs/system';
9
9
 
10
10
  // 判定是否需要缓存
11
- const isKeepAlive = data => lodash.get(data, 'meta.cache', false);
11
+ const isKeepAlive = data => get(data, 'meta.cache', false);
12
12
 
13
13
  export default {
14
14
  namespaced: true,
@@ -75,7 +75,7 @@ export default {
75
75
  if (find && find.auth) {
76
76
  const userInfo = rootState.admin.user.info;
77
77
  // @权限
78
- const access = lodash.cloneDeep(userInfo.access);
78
+ const access = cloneDeep(userInfo.access);
79
79
  // 给 access 强制加一个 hidden 的权限,否则菜单隐藏后,Tabs 页签会不显示该页签
80
80
  access.push('hidden');
81
81
  // 如果用户当前的权限,不是该 menu 对应的 权限,则过滤这个 Tab
@@ -1,47 +1,47 @@
1
- #app, body, html{
2
- height: 100%;
3
- }
4
- body{
5
- background-color: @background-color-base;
6
- font-size: 14px;
7
- }
8
-
9
- // 隐藏滚动条样式
10
- .i-scrollbar-hide{
11
- &::-webkit-scrollbar{
12
- width: 0;
13
- }
14
- &::-webkit-scrollbar-track{
15
- background-color: transparent;
16
- }
17
- &::-webkit-scrollbar-thumb{
18
- background: #e8eaec;
19
- }
20
- }
21
-
22
- // 极简滚动条样式
23
- .i-scrollbar{
24
- &::-webkit-scrollbar{
25
- width: 6px;
26
- }
27
- &::-webkit-scrollbar-track{
28
- background-color: transparent;
29
- }
30
- &::-webkit-scrollbar-thumb{
31
- background: #808695;
32
- border-radius: 4px;
33
- }
34
- }
35
-
36
- // 去除 Table 的左右边框,更精简
37
- .i-table-no-border{
38
- .ivu-table th{
39
- background-color: #fff;
40
- }
41
- .ivu-table-wrapper, .ivu-table tr:last-child td{
42
- border: none;
43
- }
44
- .ivu-table:before, .ivu-table:after{
45
- display: none;
46
- }
47
- }
1
+ #app, body, html{
2
+ height: 100%;
3
+ }
4
+ body{
5
+ background-color: @background-color-base;
6
+ font-size: 14px;
7
+ }
8
+
9
+ // 隐藏滚动条样式
10
+ .i-scrollbar-hide{
11
+ &::-webkit-scrollbar{
12
+ width: 0;
13
+ }
14
+ &::-webkit-scrollbar-track{
15
+ background-color: transparent;
16
+ }
17
+ &::-webkit-scrollbar-thumb{
18
+ background: #e8eaec;
19
+ }
20
+ }
21
+
22
+ // 极简滚动条样式
23
+ .i-scrollbar{
24
+ &::-webkit-scrollbar{
25
+ width: 6px;
26
+ }
27
+ &::-webkit-scrollbar-track{
28
+ background-color: transparent;
29
+ }
30
+ &::-webkit-scrollbar-thumb{
31
+ background: #808695;
32
+ border-radius: 4px;
33
+ }
34
+ }
35
+
36
+ // 去除 Table 的左右边框,更精简
37
+ .i-table-no-border{
38
+ .ivu-table th{
39
+ background-color: #fff;
40
+ }
41
+ .ivu-table-wrapper, .ivu-table tr:last-child td{
42
+ border: none;
43
+ }
44
+ .ivu-table:before, .ivu-table:after{
45
+ display: none;
46
+ }
47
+ }
@@ -1,6 +1,6 @@
1
- // 自定义主题
2
- // 详见 https://www.iviewui.com/docs/guide/theme
3
- @import 'view-ui-plus/src/styles/index.less';
4
-
5
- @menu-dark-title: #191a23;
6
- @menu-dark-active-bg: #101117;
1
+ // 自定义主题
2
+ // 详见 https://www.iviewui.com/docs/guide/theme
3
+ @import 'view-ui-plus/src/styles/index.less';
4
+
5
+ @menu-dark-title: #191a23;
6
+ @menu-dark-active-bg: #101117;