mooho-base-admin-plus 2.10.9 → 2.10.11
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/history.md +2 -0
- package/package/mooho-base-admin-plus.min.esm.js +9745 -9582
- package/package/mooho-base-admin-plus.min.js +70 -70
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/column-edit.vue +21 -4
- package/src/components/view/form-setting-layout.vue +1 -0
- package/src/components/view/modal-setting-filtering.vue +6 -6
- package/src/components/view/view-form-draggable.vue +5 -0
- package/src/components/view/view-form.vue +18 -1
- package/src/components/view/view-table.vue +25 -1
- package/src/i18n/locale/en-US.js +1 -1
- package/src/i18n/locale/lang.js +1 -1
- package/src/i18n/locale/zh-CN.js +1 -1
- package/src/layouts/basic-layout/mixins/click-item.js +21 -21
- package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -13
- package/src/layouts/basic-layout/water-mark/index.vue +29 -29
- package/src/libs/random_str.js +10 -10
- package/src/libs/water-mark.js +44 -44
- package/src/mixins/page.js +15 -8
- package/src/styles/common.less +47 -47
- package/src/styles/default/index.less +6 -6
- package/src/styles/font/iconfont.css +47 -47
- package/src/styles/font/iconfont.json +65 -65
- package/src/styles/layout/basic-layout/layout.less +527 -527
- package/src/styles/layout/basic-layout/menu.less +274 -274
- package/src/styles/layout/index.less +2 -2
- package/src/styles/setting.less +6 -6
- package/src/plugins/log/index.js +0 -25
|
@@ -1,274 +1,274 @@
|
|
|
1
|
-
.i-layout-menu{
|
|
2
|
-
&-side{
|
|
3
|
-
position: static; // 菜单开启后,Dropdown 会被 overflow-y:hidden 隐藏掉,加此不受影响
|
|
4
|
-
&:after{
|
|
5
|
-
display: none !important;
|
|
6
|
-
}
|
|
7
|
-
&-title{
|
|
8
|
-
display: inline-block;
|
|
9
|
-
&-icon{
|
|
10
|
-
display: inline-block;
|
|
11
|
-
width: 24px;
|
|
12
|
-
height: 24px;
|
|
13
|
-
line-height: 21px;
|
|
14
|
-
vertical-align: middle;
|
|
15
|
-
text-align: center;
|
|
16
|
-
margin-right: 8px;
|
|
17
|
-
&-single{
|
|
18
|
-
margin-right: 0;
|
|
19
|
-
}
|
|
20
|
-
i{
|
|
21
|
-
margin-right: 0 !important;
|
|
22
|
-
}
|
|
23
|
-
img{
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-text{
|
|
30
|
-
&-selected{
|
|
31
|
-
color: @primary-color;
|
|
32
|
-
}
|
|
33
|
-
&-with-subtitle{
|
|
34
|
-
position: relative;
|
|
35
|
-
top: -6px;
|
|
36
|
-
}
|
|
37
|
-
em{
|
|
38
|
-
display: block;
|
|
39
|
-
font-style: normal;
|
|
40
|
-
font-size: 12px;
|
|
41
|
-
opacity: 0.5;
|
|
42
|
-
}
|
|
43
|
-
&-with-icon{
|
|
44
|
-
em{
|
|
45
|
-
margin-left: 32px;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&-with-collapse &-text{
|
|
51
|
-
&-with-subtitle{
|
|
52
|
-
position: relative;
|
|
53
|
-
top: 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.ivu-menu-submenu-title, .ivu-menu-item{
|
|
59
|
-
height: 52px;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
text-overflow: ellipsis;
|
|
62
|
-
white-space: nowrap;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ivu-menu-submenu-title-icon{
|
|
66
|
-
width: 14px;
|
|
67
|
-
height: 14px;
|
|
68
|
-
position: absolute;
|
|
69
|
-
top: 50%;
|
|
70
|
-
right: 8px;
|
|
71
|
-
float: none;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ivu-dropdown-menu{
|
|
75
|
-
min-width: 160px;
|
|
76
|
-
}
|
|
77
|
-
.ivu-dropdown-item{
|
|
78
|
-
font-size: @font-size-base !important;
|
|
79
|
-
padding-right: 32px;
|
|
80
|
-
|
|
81
|
-
&-divided:before{
|
|
82
|
-
margin: 0 -32px 0 -16px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
.ivu-select-dropdown{
|
|
86
|
-
margin: 5px 0 5px 3px;
|
|
87
|
-
}
|
|
88
|
-
.ivu-tooltip, .ivu-tooltip-rel{
|
|
89
|
-
display: block;
|
|
90
|
-
text-align: center;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&.ivu-menu-dark .ivu-menu-item-active{
|
|
94
|
-
color: #fff !important;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&-arrow{
|
|
98
|
-
position: absolute;
|
|
99
|
-
top: 50%;
|
|
100
|
-
right: 16px;
|
|
101
|
-
transform: translate(0, -50%);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&-collapse{
|
|
105
|
-
&-top{
|
|
106
|
-
display: block;
|
|
107
|
-
&-item{
|
|
108
|
-
text-align: center;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
&-item{
|
|
112
|
-
&-selected, &-selected:hover{
|
|
113
|
-
background-color: ~`colorPalette("@{primary-color}", 1)`;
|
|
114
|
-
color: @primary-color;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
&-dropdown{
|
|
118
|
-
&-menu{
|
|
119
|
-
overflow-y: auto;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
&-title{
|
|
123
|
-
text-align: center;
|
|
124
|
-
padding: 6px 0;
|
|
125
|
-
border-bottom: 1px solid @border-color-split;
|
|
126
|
-
}
|
|
127
|
-
&-dark{
|
|
128
|
-
.ivu-select-dropdown{
|
|
129
|
-
background-color: @menu-dark-title;
|
|
130
|
-
}
|
|
131
|
-
.ivu-dropdown-item{
|
|
132
|
-
color: @menu-dark-subsidiary-color;
|
|
133
|
-
transition: all @transition-time @ease-in-out;
|
|
134
|
-
|
|
135
|
-
&-divided{
|
|
136
|
-
border-color: @menu-dark-active-bg;
|
|
137
|
-
&:before{
|
|
138
|
-
background-color: @menu-dark-title;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
.ivu-dropdown-item:hover{
|
|
143
|
-
background: transparent;
|
|
144
|
-
color: #fff;
|
|
145
|
-
}
|
|
146
|
-
.i-layout-menu-side-collapse-item{
|
|
147
|
-
&-selected, &-selected:hover{
|
|
148
|
-
background-color: @primary-color;
|
|
149
|
-
color: #fff;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
&-dark &-title{
|
|
154
|
-
border-bottom: 1px solid @menu-dark-active-bg;
|
|
155
|
-
color: @menu-dark-subsidiary-color;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&-top-item{
|
|
159
|
-
padding-left: 0 !important;
|
|
160
|
-
padding-right: 0 !important;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&-badge{
|
|
165
|
-
position: absolute;
|
|
166
|
-
top: 16px;
|
|
167
|
-
right: 40px;
|
|
168
|
-
.ivu-badge-count{
|
|
169
|
-
box-shadow: none;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
&-collapse &-badge{
|
|
173
|
-
display: none;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&-head{
|
|
178
|
-
display: inline-block;
|
|
179
|
-
//overflow: hidden;
|
|
180
|
-
flex: 1;
|
|
181
|
-
|
|
182
|
-
.ivu-menu-horizontal.ivu-menu-light:after{
|
|
183
|
-
display: none;
|
|
184
|
-
}
|
|
185
|
-
.ivu-menu-horizontal{
|
|
186
|
-
display: inline-block;
|
|
187
|
-
vertical-align: middle;
|
|
188
|
-
height: auto; // 这里不能设置为 @menuHeaderHeight - 2px,因为在平板模式下,header 宽度不够,拿不到真实高度
|
|
189
|
-
line-height: @menuHeaderHeight - 6px;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&-logo{
|
|
193
|
-
display: inline-block;
|
|
194
|
-
height: @menuHeaderHeight;
|
|
195
|
-
text-align: center;
|
|
196
|
-
vertical-align: middle;
|
|
197
|
-
img{
|
|
198
|
-
height: 80%;
|
|
199
|
-
vertical-align: middle;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&-title{
|
|
204
|
-
display: inline-block;
|
|
205
|
-
&-icon{
|
|
206
|
-
display: inline-block;
|
|
207
|
-
width: 24px;
|
|
208
|
-
height: 24px;
|
|
209
|
-
line-height: 24px;
|
|
210
|
-
vertical-align: middle;
|
|
211
|
-
text-align: center;
|
|
212
|
-
&-single{
|
|
213
|
-
margin-right: 0;
|
|
214
|
-
}
|
|
215
|
-
i{
|
|
216
|
-
margin-right: 0 !important;
|
|
217
|
-
font-size: 16px;
|
|
218
|
-
}
|
|
219
|
-
img{
|
|
220
|
-
width: 100%;
|
|
221
|
-
height: 100%;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
&-text{
|
|
225
|
-
vertical-align: middle;
|
|
226
|
-
margin-left: 6px;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.ivu-dropdown-rel{
|
|
231
|
-
padding: @headerTriggerMinPadding;
|
|
232
|
-
}
|
|
233
|
-
.ivu-dropdown-item{
|
|
234
|
-
text-align: left;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&-badge{
|
|
238
|
-
.ivu-badge-count{
|
|
239
|
-
border: none;
|
|
240
|
-
box-shadow: none;
|
|
241
|
-
margin-left: 12px;
|
|
242
|
-
line-height: 20px;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&-mobile{
|
|
247
|
-
vertical-align: baseline;
|
|
248
|
-
overflow: visible;
|
|
249
|
-
.ivu-dropdown-item{
|
|
250
|
-
font-size: 14px !important;
|
|
251
|
-
text-align: left;
|
|
252
|
-
i,span{
|
|
253
|
-
vertical-align: middle;
|
|
254
|
-
}
|
|
255
|
-
i{
|
|
256
|
-
margin-right: 6px;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
&-drop{
|
|
260
|
-
.dropdownMobile();
|
|
261
|
-
}
|
|
262
|
-
&-subtitle{
|
|
263
|
-
color: @text-color;
|
|
264
|
-
cursor: default;
|
|
265
|
-
text-align: center !important;
|
|
266
|
-
border-bottom: 1px solid @border-color-split;
|
|
267
|
-
&:hover{
|
|
268
|
-
color: @text-color;
|
|
269
|
-
cursor: default;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
1
|
+
.i-layout-menu{
|
|
2
|
+
&-side{
|
|
3
|
+
position: static; // 菜单开启后,Dropdown 会被 overflow-y:hidden 隐藏掉,加此不受影响
|
|
4
|
+
&:after{
|
|
5
|
+
display: none !important;
|
|
6
|
+
}
|
|
7
|
+
&-title{
|
|
8
|
+
display: inline-block;
|
|
9
|
+
&-icon{
|
|
10
|
+
display: inline-block;
|
|
11
|
+
width: 24px;
|
|
12
|
+
height: 24px;
|
|
13
|
+
line-height: 21px;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
text-align: center;
|
|
16
|
+
margin-right: 8px;
|
|
17
|
+
&-single{
|
|
18
|
+
margin-right: 0;
|
|
19
|
+
}
|
|
20
|
+
i{
|
|
21
|
+
margin-right: 0 !important;
|
|
22
|
+
}
|
|
23
|
+
img{
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-text{
|
|
30
|
+
&-selected{
|
|
31
|
+
color: @primary-color;
|
|
32
|
+
}
|
|
33
|
+
&-with-subtitle{
|
|
34
|
+
position: relative;
|
|
35
|
+
top: -6px;
|
|
36
|
+
}
|
|
37
|
+
em{
|
|
38
|
+
display: block;
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
opacity: 0.5;
|
|
42
|
+
}
|
|
43
|
+
&-with-icon{
|
|
44
|
+
em{
|
|
45
|
+
margin-left: 32px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-with-collapse &-text{
|
|
51
|
+
&-with-subtitle{
|
|
52
|
+
position: relative;
|
|
53
|
+
top: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ivu-menu-submenu-title, .ivu-menu-item{
|
|
59
|
+
height: 52px;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
text-overflow: ellipsis;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ivu-menu-submenu-title-icon{
|
|
66
|
+
width: 14px;
|
|
67
|
+
height: 14px;
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 50%;
|
|
70
|
+
right: 8px;
|
|
71
|
+
float: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ivu-dropdown-menu{
|
|
75
|
+
min-width: 160px;
|
|
76
|
+
}
|
|
77
|
+
.ivu-dropdown-item{
|
|
78
|
+
font-size: @font-size-base !important;
|
|
79
|
+
padding-right: 32px;
|
|
80
|
+
|
|
81
|
+
&-divided:before{
|
|
82
|
+
margin: 0 -32px 0 -16px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.ivu-select-dropdown{
|
|
86
|
+
margin: 5px 0 5px 3px;
|
|
87
|
+
}
|
|
88
|
+
.ivu-tooltip, .ivu-tooltip-rel{
|
|
89
|
+
display: block;
|
|
90
|
+
text-align: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&.ivu-menu-dark .ivu-menu-item-active{
|
|
94
|
+
color: #fff !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-arrow{
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 50%;
|
|
100
|
+
right: 16px;
|
|
101
|
+
transform: translate(0, -50%);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-collapse{
|
|
105
|
+
&-top{
|
|
106
|
+
display: block;
|
|
107
|
+
&-item{
|
|
108
|
+
text-align: center;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
&-item{
|
|
112
|
+
&-selected, &-selected:hover{
|
|
113
|
+
background-color: ~`colorPalette("@{primary-color}", 1)`;
|
|
114
|
+
color: @primary-color;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
&-dropdown{
|
|
118
|
+
&-menu{
|
|
119
|
+
overflow-y: auto;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
&-title{
|
|
123
|
+
text-align: center;
|
|
124
|
+
padding: 6px 0;
|
|
125
|
+
border-bottom: 1px solid @border-color-split;
|
|
126
|
+
}
|
|
127
|
+
&-dark{
|
|
128
|
+
.ivu-select-dropdown{
|
|
129
|
+
background-color: @menu-dark-title;
|
|
130
|
+
}
|
|
131
|
+
.ivu-dropdown-item{
|
|
132
|
+
color: @menu-dark-subsidiary-color;
|
|
133
|
+
transition: all @transition-time @ease-in-out;
|
|
134
|
+
|
|
135
|
+
&-divided{
|
|
136
|
+
border-color: @menu-dark-active-bg;
|
|
137
|
+
&:before{
|
|
138
|
+
background-color: @menu-dark-title;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
.ivu-dropdown-item:hover{
|
|
143
|
+
background: transparent;
|
|
144
|
+
color: #fff;
|
|
145
|
+
}
|
|
146
|
+
.i-layout-menu-side-collapse-item{
|
|
147
|
+
&-selected, &-selected:hover{
|
|
148
|
+
background-color: @primary-color;
|
|
149
|
+
color: #fff;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
&-dark &-title{
|
|
154
|
+
border-bottom: 1px solid @menu-dark-active-bg;
|
|
155
|
+
color: @menu-dark-subsidiary-color;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&-top-item{
|
|
159
|
+
padding-left: 0 !important;
|
|
160
|
+
padding-right: 0 !important;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&-badge{
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: 16px;
|
|
167
|
+
right: 40px;
|
|
168
|
+
.ivu-badge-count{
|
|
169
|
+
box-shadow: none;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
&-collapse &-badge{
|
|
173
|
+
display: none;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&-head{
|
|
178
|
+
display: inline-block;
|
|
179
|
+
//overflow: hidden;
|
|
180
|
+
flex: 1;
|
|
181
|
+
|
|
182
|
+
.ivu-menu-horizontal.ivu-menu-light:after{
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
.ivu-menu-horizontal{
|
|
186
|
+
display: inline-block;
|
|
187
|
+
vertical-align: middle;
|
|
188
|
+
height: auto; // 这里不能设置为 @menuHeaderHeight - 2px,因为在平板模式下,header 宽度不够,拿不到真实高度
|
|
189
|
+
line-height: @menuHeaderHeight - 6px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&-logo{
|
|
193
|
+
display: inline-block;
|
|
194
|
+
height: @menuHeaderHeight;
|
|
195
|
+
text-align: center;
|
|
196
|
+
vertical-align: middle;
|
|
197
|
+
img{
|
|
198
|
+
height: 80%;
|
|
199
|
+
vertical-align: middle;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&-title{
|
|
204
|
+
display: inline-block;
|
|
205
|
+
&-icon{
|
|
206
|
+
display: inline-block;
|
|
207
|
+
width: 24px;
|
|
208
|
+
height: 24px;
|
|
209
|
+
line-height: 24px;
|
|
210
|
+
vertical-align: middle;
|
|
211
|
+
text-align: center;
|
|
212
|
+
&-single{
|
|
213
|
+
margin-right: 0;
|
|
214
|
+
}
|
|
215
|
+
i{
|
|
216
|
+
margin-right: 0 !important;
|
|
217
|
+
font-size: 16px;
|
|
218
|
+
}
|
|
219
|
+
img{
|
|
220
|
+
width: 100%;
|
|
221
|
+
height: 100%;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
&-text{
|
|
225
|
+
vertical-align: middle;
|
|
226
|
+
margin-left: 6px;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.ivu-dropdown-rel{
|
|
231
|
+
padding: @headerTriggerMinPadding;
|
|
232
|
+
}
|
|
233
|
+
.ivu-dropdown-item{
|
|
234
|
+
text-align: left;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&-badge{
|
|
238
|
+
.ivu-badge-count{
|
|
239
|
+
border: none;
|
|
240
|
+
box-shadow: none;
|
|
241
|
+
margin-left: 12px;
|
|
242
|
+
line-height: 20px;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&-mobile{
|
|
247
|
+
vertical-align: baseline;
|
|
248
|
+
overflow: visible;
|
|
249
|
+
.ivu-dropdown-item{
|
|
250
|
+
font-size: 14px !important;
|
|
251
|
+
text-align: left;
|
|
252
|
+
i,span{
|
|
253
|
+
vertical-align: middle;
|
|
254
|
+
}
|
|
255
|
+
i{
|
|
256
|
+
margin-right: 6px;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
&-drop{
|
|
260
|
+
.dropdownMobile();
|
|
261
|
+
}
|
|
262
|
+
&-subtitle{
|
|
263
|
+
color: @text-color;
|
|
264
|
+
cursor: default;
|
|
265
|
+
text-align: center !important;
|
|
266
|
+
border-bottom: 1px solid @border-color-split;
|
|
267
|
+
&:hover{
|
|
268
|
+
color: @text-color;
|
|
269
|
+
cursor: default;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "basic-layout/layout.less";
|
|
2
|
-
@import "basic-layout/menu.less";
|
|
1
|
+
@import "basic-layout/layout.less";
|
|
2
|
+
@import "basic-layout/menu.less";
|
package/src/styles/setting.less
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// 侧边菜单宽度,需与 setting.js 的 menuSideWidth 保持一致
|
|
2
|
-
@menuSideWidth: 256px;
|
|
3
|
-
// 顶栏高度,需与 setting.js 的 headerHeight 保持一致
|
|
4
|
-
@headerHeight: 64px;
|
|
5
|
-
// 侧边菜单折起时的宽度,需与 setting.js 的 menuSideCollapseWidth 保持一致
|
|
6
|
-
@menuSideCollapseWidth: 80px;
|
|
1
|
+
// 侧边菜单宽度,需与 setting.js 的 menuSideWidth 保持一致
|
|
2
|
+
@menuSideWidth: 256px;
|
|
3
|
+
// 顶栏高度,需与 setting.js 的 headerHeight 保持一致
|
|
4
|
+
@headerHeight: 64px;
|
|
5
|
+
// 侧边菜单折起时的宽度,需与 setting.js 的 menuSideCollapseWidth 保持一致
|
|
6
|
+
@menuSideCollapseWidth: 80px;
|
package/src/plugins/log/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
};
|