mooho-base-admin-plus 0.1.67 → 0.1.68

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 (33) hide show
  1. package/dist/mooho-base-admin-plus.min.esm.js +2266 -1629
  2. package/dist/mooho-base-admin-plus.min.js +57 -69
  3. package/dist/setting.js +27 -1
  4. package/dist/style.css +1 -1
  5. package/package.json +2 -2
  6. package/public/setting.js +27 -1
  7. package/src/components/input/item-select.vue +1 -0
  8. package/src/components/upload/upload-image.vue +6 -0
  9. package/src/components/view/form-setting-layout.vue +11 -6
  10. package/src/components/view/view-form.vue +1 -1
  11. package/src/components/view/view-table.vue +38 -66
  12. package/src/i18n/locale/en-US.js +1 -1
  13. package/src/i18n/locale/lang.js +1 -1
  14. package/src/i18n/locale/zh-CN.js +1 -1
  15. package/src/layouts/basic-layout/mixins/click-item.js +21 -21
  16. package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -13
  17. package/src/layouts/basic-layout/mixins/translate-title.js +11 -11
  18. package/src/layouts/basic-layout/water-mark/index.vue +29 -29
  19. package/src/libs/lodop/index.js +3 -1
  20. package/src/libs/random_str.js +10 -10
  21. package/src/libs/request/index.js +4 -1
  22. package/src/libs/water-mark.js +44 -44
  23. package/src/pages/template/processPage.vue +7 -1
  24. package/src/plugins/log/index.js +25 -0
  25. package/src/setting.js +12 -1
  26. package/src/styles/common.less +47 -47
  27. package/src/styles/default/index.less +6 -6
  28. package/src/styles/font/iconfont.css +47 -47
  29. package/src/styles/font/iconfont.json +65 -65
  30. package/src/styles/layout/basic-layout/layout.less +527 -527
  31. package/src/styles/layout/basic-layout/menu.less +274 -274
  32. package/src/styles/layout/index.less +2 -2
  33. package/src/styles/setting.less +6 -6
@@ -0,0 +1,25 @@
1
+ import store from '../../store';
2
+ import util from '../../libs/util';
3
+
4
+ export default {
5
+ install(app) {
6
+ // 快速打印 log
7
+ app.config.globalProperties.$log = {
8
+ ...util.log,
9
+ push(data) {
10
+ if (typeof data === 'string') {
11
+ // 如果传递来的数据是字符串
12
+ // 赋值给 message 字段
13
+ // 为了方便使用
14
+ // eg: this.$log.push('foo text')
15
+ store.dispatch('admin/log/push', {
16
+ message: data
17
+ });
18
+ } else if (typeof data === 'object') {
19
+ // 如果传递来的数据是对象
20
+ store.dispatch('admin/log/push', data);
21
+ }
22
+ }
23
+ };
24
+ }
25
+ };
package/src/setting.js CHANGED
@@ -46,6 +46,15 @@ const Setting = {
46
46
  // 是否通过远程接口来获取 i81n 文件
47
47
  remote: false
48
48
  },
49
+ /**
50
+ * 打印控件
51
+ * */
52
+ lodop: {
53
+ // 名称
54
+ name: '南京摩赫信息技术有限公司',
55
+ // key
56
+ key: '58C4DF8932E17DEBE409D1E7F683CAFE'
57
+ },
49
58
  /**
50
59
  * 布局配置
51
60
  * */
@@ -120,7 +129,9 @@ const Setting = {
120
129
  // 是否允许点击遮罩层关闭
121
130
  maskClosable: true,
122
131
  // 是否允许拖动
123
- draggable: true
132
+ draggable: true,
133
+ // 筛选标题栏宽度
134
+ filterWidth: 125
124
135
  },
125
136
  /**
126
137
  * 多页 Tabs
@@ -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;
@@ -1,47 +1,47 @@
1
- @font-face {
2
- font-family: "i-icon"; /* Project id 1125611 */
3
- src: url('iconfont.woff2?t=1651052284018') format('woff2'),
4
- url('iconfont.woff?t=1651052284018') format('woff'),
5
- url('iconfont.ttf?t=1651052284018') format('truetype');
6
- }
7
-
8
- .i-icon {
9
- font-family: "i-icon" !important;
10
- font-size: 16px;
11
- font-style: normal;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- .i-icon-i18n:before {
17
- content: "\e8e9";
18
- }
19
-
20
- .i-icon-refresh:before {
21
- content: "\e7d1";
22
- }
23
-
24
- .i-icon-record:before {
25
- content: "\e61f";
26
- }
27
-
28
- .i-icon-notification:before {
29
- content: "\e69d";
30
- }
31
-
32
- .i-icon-full-screen:before {
33
- content: "\e743";
34
- }
35
-
36
- .i-icon-exit-full-screen:before {
37
- content: "\e657";
38
- }
39
-
40
- .i-icon-menu-unfold:before {
41
- content: "\e68b";
42
- }
43
-
44
- .i-icon-menu-fold:before {
45
- content: "\e600";
46
- }
47
-
1
+ @font-face {
2
+ font-family: "i-icon"; /* Project id 1125611 */
3
+ src: url('iconfont.woff2?t=1651052284018') format('woff2'),
4
+ url('iconfont.woff?t=1651052284018') format('woff'),
5
+ url('iconfont.ttf?t=1651052284018') format('truetype');
6
+ }
7
+
8
+ .i-icon {
9
+ font-family: "i-icon" !important;
10
+ font-size: 16px;
11
+ font-style: normal;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ .i-icon-i18n:before {
17
+ content: "\e8e9";
18
+ }
19
+
20
+ .i-icon-refresh:before {
21
+ content: "\e7d1";
22
+ }
23
+
24
+ .i-icon-record:before {
25
+ content: "\e61f";
26
+ }
27
+
28
+ .i-icon-notification:before {
29
+ content: "\e69d";
30
+ }
31
+
32
+ .i-icon-full-screen:before {
33
+ content: "\e743";
34
+ }
35
+
36
+ .i-icon-exit-full-screen:before {
37
+ content: "\e657";
38
+ }
39
+
40
+ .i-icon-menu-unfold:before {
41
+ content: "\e68b";
42
+ }
43
+
44
+ .i-icon-menu-fold:before {
45
+ content: "\e600";
46
+ }
47
+
@@ -1,65 +1,65 @@
1
- {
2
- "id": "1125611",
3
- "name": "iview-admin-pro",
4
- "font_family": "i-icon",
5
- "css_prefix_text": "i-icon-",
6
- "description": "",
7
- "glyphs": [
8
- {
9
- "icon_id": "27328867",
10
- "name": "i18n",
11
- "font_class": "i18n",
12
- "unicode": "e8e9",
13
- "unicode_decimal": 59625
14
- },
15
- {
16
- "icon_id": "587065",
17
- "name": "refresh",
18
- "font_class": "refresh",
19
- "unicode": "e7d1",
20
- "unicode_decimal": 59345
21
- },
22
- {
23
- "icon_id": "544041",
24
- "name": "iconfont-radiobox",
25
- "font_class": "record",
26
- "unicode": "e61f",
27
- "unicode_decimal": 58911
28
- },
29
- {
30
- "icon_id": "2552069",
31
- "name": "notification",
32
- "font_class": "notification",
33
- "unicode": "e69d",
34
- "unicode_decimal": 59037
35
- },
36
- {
37
- "icon_id": "3556111",
38
- "name": "full-screen",
39
- "font_class": "full-screen",
40
- "unicode": "e743",
41
- "unicode_decimal": 59203
42
- },
43
- {
44
- "icon_id": "1433808",
45
- "name": "exit-full-screen",
46
- "font_class": "exit-full-screen",
47
- "unicode": "e657",
48
- "unicode_decimal": 58967
49
- },
50
- {
51
- "icon_id": "6925933",
52
- "name": "menu-unfold",
53
- "font_class": "menu-unfold",
54
- "unicode": "e68b",
55
- "unicode_decimal": 59019
56
- },
57
- {
58
- "icon_id": "7839858",
59
- "name": "menu-fold",
60
- "font_class": "menu-fold",
61
- "unicode": "e600",
62
- "unicode_decimal": 58880
63
- }
64
- ]
65
- }
1
+ {
2
+ "id": "1125611",
3
+ "name": "iview-admin-pro",
4
+ "font_family": "i-icon",
5
+ "css_prefix_text": "i-icon-",
6
+ "description": "",
7
+ "glyphs": [
8
+ {
9
+ "icon_id": "27328867",
10
+ "name": "i18n",
11
+ "font_class": "i18n",
12
+ "unicode": "e8e9",
13
+ "unicode_decimal": 59625
14
+ },
15
+ {
16
+ "icon_id": "587065",
17
+ "name": "refresh",
18
+ "font_class": "refresh",
19
+ "unicode": "e7d1",
20
+ "unicode_decimal": 59345
21
+ },
22
+ {
23
+ "icon_id": "544041",
24
+ "name": "iconfont-radiobox",
25
+ "font_class": "record",
26
+ "unicode": "e61f",
27
+ "unicode_decimal": 58911
28
+ },
29
+ {
30
+ "icon_id": "2552069",
31
+ "name": "notification",
32
+ "font_class": "notification",
33
+ "unicode": "e69d",
34
+ "unicode_decimal": 59037
35
+ },
36
+ {
37
+ "icon_id": "3556111",
38
+ "name": "full-screen",
39
+ "font_class": "full-screen",
40
+ "unicode": "e743",
41
+ "unicode_decimal": 59203
42
+ },
43
+ {
44
+ "icon_id": "1433808",
45
+ "name": "exit-full-screen",
46
+ "font_class": "exit-full-screen",
47
+ "unicode": "e657",
48
+ "unicode_decimal": 58967
49
+ },
50
+ {
51
+ "icon_id": "6925933",
52
+ "name": "menu-unfold",
53
+ "font_class": "menu-unfold",
54
+ "unicode": "e68b",
55
+ "unicode_decimal": 59019
56
+ },
57
+ {
58
+ "icon_id": "7839858",
59
+ "name": "menu-fold",
60
+ "font_class": "menu-fold",
61
+ "unicode": "e600",
62
+ "unicode_decimal": 58880
63
+ }
64
+ ]
65
+ }