@lambo-design/shared 1.0.0-beta.192 → 1.0.0-beta.194
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/config/index.js +7 -2
- package/config/themes/index.js +2 -2
- package/index.js +4 -5
- package/nstyles/components/index.less +15 -16
- package/nstyles/components/layout/index.less +7 -8
- package/package.json +1 -1
- package/utils/index.js +37 -0
- package/utils/modelerUtil.js +1 -1
- package/utils/n/index.js +10 -0
- package/nstyles/components/layout/basic-layout.less +0 -270
- package/nstyles/components/login.less +0 -47
package/config/index.js
CHANGED
package/config/themes/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import themeBlue from "./theme-blue";
|
|
|
9
9
|
import themeDeep from "./theme-deep";
|
|
10
10
|
import themeBw from "./theme-bw";
|
|
11
11
|
import themeBwt from "./theme-bwt";
|
|
12
|
-
export default
|
|
12
|
+
export default {
|
|
13
13
|
themeDefault,
|
|
14
14
|
themeGold,
|
|
15
15
|
themeLime,
|
|
@@ -21,4 +21,4 @@ export default [
|
|
|
21
21
|
themeDeep,
|
|
22
22
|
themeBw,
|
|
23
23
|
themeBwt
|
|
24
|
-
|
|
24
|
+
}
|
package/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { config, utils, importDirective, Plugin};
|
|
1
|
+
export * from "./config";
|
|
2
|
+
export * from "./utils";
|
|
3
|
+
export * from "./directives"
|
|
4
|
+
export * from "./plugin"
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
@import './layout/index.less';
|
|
2
|
-
@import './404.less';
|
|
3
|
-
@import './button.less';
|
|
4
|
-
@import './date-picker.less';
|
|
5
|
-
@import './drawer.less';
|
|
6
|
-
@import './dropdown.less';
|
|
7
|
-
@import './excel-flow.less';
|
|
8
|
-
@import './form.less';
|
|
9
|
-
@import './
|
|
10
|
-
@import './
|
|
11
|
-
@import './
|
|
12
|
-
@import './
|
|
13
|
-
@import './
|
|
14
|
-
@import './
|
|
15
|
-
@import './
|
|
16
|
-
@import './upload.less';
|
|
1
|
+
@import './layout/index.less';
|
|
2
|
+
@import './404.less';
|
|
3
|
+
@import './button.less';
|
|
4
|
+
@import './date-picker.less';
|
|
5
|
+
@import './drawer.less';
|
|
6
|
+
@import './dropdown.less';
|
|
7
|
+
@import './excel-flow.less';
|
|
8
|
+
@import './form.less';
|
|
9
|
+
@import './modal.less';
|
|
10
|
+
@import './panel.less';
|
|
11
|
+
@import './select.less';
|
|
12
|
+
@import './sign.less';
|
|
13
|
+
@import './table.less';
|
|
14
|
+
@import './tree.less';
|
|
15
|
+
@import './upload.less';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
@import './
|
|
2
|
-
@import './
|
|
3
|
-
@import './
|
|
4
|
-
@import './
|
|
5
|
-
@import './
|
|
6
|
-
@import './
|
|
7
|
-
@import './
|
|
8
|
-
@import './tags-nav.less';
|
|
1
|
+
@import './collect.less';
|
|
2
|
+
@import './detail-view.less';
|
|
3
|
+
@import './full-screen.less';
|
|
4
|
+
@import './other-menu.less';
|
|
5
|
+
@import './page-view.less';
|
|
6
|
+
@import './sider-trigger.less';
|
|
7
|
+
@import './tags-nav.less';
|
package/package.json
CHANGED
package/utils/index.js
CHANGED
|
@@ -3,3 +3,40 @@ const sum = (a, b) => {
|
|
|
3
3
|
};
|
|
4
4
|
|
|
5
5
|
export { sum };
|
|
6
|
+
import ajax from './ajax'
|
|
7
|
+
|
|
8
|
+
export {ajax as axios}
|
|
9
|
+
export * from './crypto'
|
|
10
|
+
export * from './dict'
|
|
11
|
+
export * from './form/validate'
|
|
12
|
+
export * from './menu'
|
|
13
|
+
export * from './vxetable'
|
|
14
|
+
export * from './n'
|
|
15
|
+
export * from './date'
|
|
16
|
+
export * from './assist'
|
|
17
|
+
export * from './base64'
|
|
18
|
+
export * from './bus'
|
|
19
|
+
export * from './dom'
|
|
20
|
+
export * from './event'
|
|
21
|
+
export * from './excel'
|
|
22
|
+
export * from './file'
|
|
23
|
+
export * from './half-year'
|
|
24
|
+
export * from './json'
|
|
25
|
+
export * from './lodop'
|
|
26
|
+
export * from './mime_type'
|
|
27
|
+
export * from './modelerUtil'
|
|
28
|
+
export * from './n-generator-routers'
|
|
29
|
+
export * from './n-router'
|
|
30
|
+
export * from './n-theme'
|
|
31
|
+
export * from './number'
|
|
32
|
+
export * from './oss'
|
|
33
|
+
export * from './platform'
|
|
34
|
+
export * from './quarter'
|
|
35
|
+
export * from './storage'
|
|
36
|
+
export * from './style'
|
|
37
|
+
export * from './theme'
|
|
38
|
+
export * from './transfer-queue'
|
|
39
|
+
export * from './type'
|
|
40
|
+
export * from './util'
|
|
41
|
+
export * from './validator'
|
|
42
|
+
export * from './zoomScroll'
|
package/utils/modelerUtil.js
CHANGED
package/utils/n/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './date'
|
|
2
|
+
export * from './is-type'
|
|
3
|
+
export * from './number'
|
|
4
|
+
export * from './permission-cache'
|
|
5
|
+
export * from './storage'
|
|
6
|
+
export * from './token'
|
|
7
|
+
export * from './user-cache'
|
|
8
|
+
export * from './user'
|
|
9
|
+
export * from './uuid'
|
|
10
|
+
export * from './reuqest/axiosN'
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
.ind-basic-layout {
|
|
2
|
-
width: 100vw;
|
|
3
|
-
height: 100vh;
|
|
4
|
-
|
|
5
|
-
.custom-bread-crumb {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
vertical-align: top;
|
|
8
|
-
}
|
|
9
|
-
.ivu-menu-horizontal {
|
|
10
|
-
height: var(--header-height);
|
|
11
|
-
line-height: var(--header-height);
|
|
12
|
-
background: unset !important;
|
|
13
|
-
}
|
|
14
|
-
.ind-sider {
|
|
15
|
-
.sider-menu {
|
|
16
|
-
margin-top: calc(var(--header-height) + 50px);
|
|
17
|
-
}
|
|
18
|
-
.side-menu-wrapper {
|
|
19
|
-
user-select: none;
|
|
20
|
-
|
|
21
|
-
.menu-collapsed {
|
|
22
|
-
padding-top: 10px;
|
|
23
|
-
|
|
24
|
-
.ivu-dropdown {
|
|
25
|
-
width: 100%;
|
|
26
|
-
text-align: center;
|
|
27
|
-
|
|
28
|
-
.ivu-dropdown-rel a {
|
|
29
|
-
width: 100%;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.ivu-tooltip {
|
|
34
|
-
width: 100%;
|
|
35
|
-
|
|
36
|
-
.ivu-tooltip-rel {
|
|
37
|
-
width: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ivu-tooltip-popper .ivu-tooltip-content {
|
|
41
|
-
.ivu-tooltip-arrow {
|
|
42
|
-
border-right-color: #fff;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ivu-tooltip-inner {
|
|
46
|
-
background: #fff;
|
|
47
|
-
color: #495060;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
a.drop-menu-a {
|
|
54
|
-
display: inline-block;
|
|
55
|
-
padding: 6px 15px;
|
|
56
|
-
width: 100%;
|
|
57
|
-
text-align: center;
|
|
58
|
-
color: var(--ind-text-color);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ivu-layout-sider-children {
|
|
63
|
-
overflow-y: auto;
|
|
64
|
-
padding-bottom: 48px;
|
|
65
|
-
background-color: var(--menu-black-active-bg);
|
|
66
|
-
margin-right: 0px !important;
|
|
67
|
-
&::-webkit-scrollbar {
|
|
68
|
-
width: 0;
|
|
69
|
-
}
|
|
70
|
-
// ,
|
|
71
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item:hover,
|
|
72
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover,
|
|
73
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item:hover {
|
|
74
|
-
color: var(--deep-menu-color);
|
|
75
|
-
background: var(--selected-background-hover) !important;
|
|
76
|
-
}
|
|
77
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item,
|
|
78
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title,
|
|
79
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item {
|
|
80
|
-
color: var(--ind-text-color);
|
|
81
|
-
font-size: var(--ivu-menu-item-font-size);
|
|
82
|
-
background-color: var(--menu-black-active-bg) !important;
|
|
83
|
-
}
|
|
84
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-child-item-active > .ivu-menu-submenu-title {
|
|
85
|
-
color: var(--deep-menu-color);
|
|
86
|
-
font-size: 14px;
|
|
87
|
-
}
|
|
88
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active,
|
|
89
|
-
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active:hover {
|
|
90
|
-
background: var(--selected-background) !important;
|
|
91
|
-
border-right: 3px solid var(--deep-mian-color);
|
|
92
|
-
color: var(--deep-menu-color) !important;
|
|
93
|
-
}
|
|
94
|
-
.ivu-menu-vertical .ivu-menu-submenu-title-icon {
|
|
95
|
-
right: 0px;
|
|
96
|
-
}
|
|
97
|
-
.ivu-menu-submenu-title > i,
|
|
98
|
-
.ivu-menu-submenu-title span > i {
|
|
99
|
-
margin-right: var(--menu-icon-margin-right);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.header-bar {
|
|
105
|
-
width: 100%;
|
|
106
|
-
height: 100%;
|
|
107
|
-
position: relative;
|
|
108
|
-
background: var(--header-bg);
|
|
109
|
-
.sys-name {
|
|
110
|
-
cursor: pointer;
|
|
111
|
-
width: 200px;
|
|
112
|
-
color: var(--header-color-hover);
|
|
113
|
-
font-size: 18px;
|
|
114
|
-
text-indent: 50px;
|
|
115
|
-
font-weight: bold;
|
|
116
|
-
height: var(--header-height);
|
|
117
|
-
line-height: var(--header-height);
|
|
118
|
-
float: left;
|
|
119
|
-
background: url('@/assets/imgs/logo.png') center / 36px 36px no-repeat;
|
|
120
|
-
background-position: 10px calc((var(--header-height) - 36px) / 2);
|
|
121
|
-
}
|
|
122
|
-
.custom-content-con {
|
|
123
|
-
float: right;
|
|
124
|
-
height: auto;
|
|
125
|
-
padding-right: 20px;
|
|
126
|
-
line-height: var(--header-height);
|
|
127
|
-
color: var(--header-color-hover);
|
|
128
|
-
font-size: 16px !important;
|
|
129
|
-
& > * {
|
|
130
|
-
float: right;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
.ivu-menu-item:hover {
|
|
134
|
-
color: var(--header-color-hover) !important;
|
|
135
|
-
}
|
|
136
|
-
.ivu-menu-item {
|
|
137
|
-
border-bottom: 3px solid rgba(0, 0, 0, 0) !important;
|
|
138
|
-
font-size: 14px;
|
|
139
|
-
color: var(--header-color) !important;
|
|
140
|
-
}
|
|
141
|
-
.ivu-menu-item-selected {
|
|
142
|
-
color: var(--header-color-hover) !important;
|
|
143
|
-
border-bottom: 3px solid var(--header-border-bottom-color) !important;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.ivu-menu {
|
|
148
|
-
.ivu-menu {
|
|
149
|
-
border-top: 1px solid var(--menu-black-active-bg);
|
|
150
|
-
border-bottom: none;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
.ivu-layout-sider {
|
|
154
|
-
height: 100%;
|
|
155
|
-
}
|
|
156
|
-
.ivu-menu-dark {
|
|
157
|
-
background: var(--menu-dark-active-bg) !important;
|
|
158
|
-
}
|
|
159
|
-
.ivu-menu-submenu-title {
|
|
160
|
-
background: var(--menu-dark-active-bg);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.ivu-menu-item > i {
|
|
164
|
-
margin-right: 12px !important;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.ivu-menu-submenu > .ivu-menu > .ivu-menu-item > i {
|
|
168
|
-
margin-right: 8px !important;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.collased-menu-dropdown {
|
|
172
|
-
width: 100%;
|
|
173
|
-
margin: 0;
|
|
174
|
-
line-height: normal;
|
|
175
|
-
padding: 7px 0 6px 16px;
|
|
176
|
-
clear: both;
|
|
177
|
-
font-size: 12px !important;
|
|
178
|
-
white-space: nowrap;
|
|
179
|
-
list-style: none;
|
|
180
|
-
cursor: pointer;
|
|
181
|
-
transition: background 0.2s ease-in-out;
|
|
182
|
-
|
|
183
|
-
&:hover {
|
|
184
|
-
background: rgba(100, 100, 100, 0.1);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
& * {
|
|
188
|
-
color: #515a6e;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.ivu-menu-item > i {
|
|
192
|
-
margin-right: 12px !important;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.ivu-menu-submenu > .ivu-menu > .ivu-menu-item > i {
|
|
196
|
-
margin-right: 8px !important;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.ivu-select-dropdown.ivu-dropdown-transfer {
|
|
201
|
-
max-height: 400px;
|
|
202
|
-
}
|
|
203
|
-
.ivu-menu-horizontal.ivu-menu-light:after {
|
|
204
|
-
background: unset !important;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.ind-main-layout {
|
|
208
|
-
width: 100%;
|
|
209
|
-
height: 100%;
|
|
210
|
-
overflow: auto;
|
|
211
|
-
|
|
212
|
-
.ind-sider-content {
|
|
213
|
-
height: 100%;
|
|
214
|
-
|
|
215
|
-
.ind-sider-trigger {
|
|
216
|
-
width: var(--ind-main-sider-width);
|
|
217
|
-
|
|
218
|
-
&.collapsed {
|
|
219
|
-
width: var(--ind-main-sider-collapsed-width);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.ind-sider {
|
|
224
|
-
overflow: hidden;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.ind-main-content {
|
|
229
|
-
height: 100%;
|
|
230
|
-
overflow: hidden;
|
|
231
|
-
|
|
232
|
-
.ind-main-content-wrapper {
|
|
233
|
-
height: 100%;
|
|
234
|
-
overflow: auto;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.ind-menu-desc {
|
|
241
|
-
display: inline-block;
|
|
242
|
-
cursor: pointer;
|
|
243
|
-
margin-top: var(--ind-menu-desc-margin-top); // 4px;
|
|
244
|
-
margin-left: 5px;
|
|
245
|
-
i {
|
|
246
|
-
font-weight: bold;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.ind-menu-help-panel {
|
|
251
|
-
line-height: 2;
|
|
252
|
-
height: 500px;
|
|
253
|
-
overflow: auto;
|
|
254
|
-
|
|
255
|
-
.ind-menu-title {
|
|
256
|
-
font-weight: bold;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.ind-menu-line-item {
|
|
260
|
-
margin-bottom: 10px;
|
|
261
|
-
.ind-intent-1 {
|
|
262
|
-
padding-left: 20px;
|
|
263
|
-
font-weight: bold;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.ind-menu-desc-content {
|
|
267
|
-
padding-left: 20px;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
.ind-login {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
background-image: url('@/assets/imgs/login/login-bg.jpg');
|
|
6
|
-
background-size: cover;
|
|
7
|
-
background-position: center;
|
|
8
|
-
|
|
9
|
-
&-con {
|
|
10
|
-
position: absolute;
|
|
11
|
-
right: 160px;
|
|
12
|
-
top: 50%;
|
|
13
|
-
transform: translateY(-60%);
|
|
14
|
-
width: 350px;
|
|
15
|
-
|
|
16
|
-
.ind-form-con {
|
|
17
|
-
padding: 10px 0 0;
|
|
18
|
-
border-left: none !important;
|
|
19
|
-
border-top: none !important;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ind-login-form {
|
|
24
|
-
.ind-login-prefix {
|
|
25
|
-
width: 13px;
|
|
26
|
-
height: 13px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.ind-login-captcha {
|
|
30
|
-
width: 65%;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.ind-login-img-box {
|
|
34
|
-
width: 90px;
|
|
35
|
-
height: 33px;
|
|
36
|
-
float: right;
|
|
37
|
-
padding: 2px;
|
|
38
|
-
margin-top: -33px;
|
|
39
|
-
background-color: #f8f8f9;
|
|
40
|
-
|
|
41
|
-
.ind-login-captcha-img {
|
|
42
|
-
width: 100%;
|
|
43
|
-
height: 100%;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|