cfel-base-components 2.5.52 → 2.5.54
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/demo/src/index.jsx +86 -15
- package/demo/src/index.module.less +23 -3
- package/package.json +1 -1
- package/src/.umi/core/helmet.ts +1 -1
- package/src/components/layout/index.scss +68 -78
- package/src/components/layout/index.tsx +32 -4
- package/src/components/layout-console/index-console.scss +90 -46
- package/src/components/layout-console/index.tsx +134 -165
- package/src/global.d.ts +0 -2
- package/demo/src/index.scss +0 -0
- package/src/components/layout-copy/index.scss +0 -169
- package/src/components/layout-copy/index.tsx +0 -218
- package/src/components/layout-copy/user-card/index.scss +0 -180
- package/src/components/layout-copy/user-card/index.tsx +0 -162
|
@@ -21,6 +21,8 @@ ul {
|
|
|
21
21
|
margin: 0;
|
|
22
22
|
list-style: none;
|
|
23
23
|
cursor: pointer;
|
|
24
|
+
position: relative;
|
|
25
|
+
z-index: 90;
|
|
24
26
|
|
|
25
27
|
.#{$menuPrefixCls}-submenu-arrow {
|
|
26
28
|
display: inline-block;
|
|
@@ -40,7 +42,7 @@ ul {
|
|
|
40
42
|
&::after {
|
|
41
43
|
position: absolute;
|
|
42
44
|
width: 6px;
|
|
43
|
-
height:
|
|
45
|
+
height: 1px;
|
|
44
46
|
scale: 1.25;
|
|
45
47
|
background: rgba(255, 255, 255, 0.65);
|
|
46
48
|
border-radius: 2px;
|
|
@@ -89,6 +91,20 @@ ul {
|
|
|
89
91
|
|
|
90
92
|
|
|
91
93
|
> li {
|
|
94
|
+
.first-li {
|
|
95
|
+
&:hover {
|
|
96
|
+
.menu-item-icon {
|
|
97
|
+
color: #fff;
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.menu-item-label {
|
|
102
|
+
color: #fff;
|
|
103
|
+
font-weight: 500;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
92
108
|
&:hover {
|
|
93
109
|
> .menu-item-content {
|
|
94
110
|
.menu-item-icon,
|
|
@@ -204,6 +220,20 @@ ul {
|
|
|
204
220
|
position: relative;
|
|
205
221
|
z-index: 9;
|
|
206
222
|
line-height: 52px;
|
|
223
|
+
width: 100%;
|
|
224
|
+
|
|
225
|
+
.menu-item-content{
|
|
226
|
+
width: 100%;
|
|
227
|
+
padding-right: 24px;
|
|
228
|
+
|
|
229
|
+
.menu-item-label{
|
|
230
|
+
width: 100%;
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: space-between;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
207
237
|
|
|
208
238
|
&::before {
|
|
209
239
|
content: '';
|
|
@@ -213,14 +243,14 @@ ul {
|
|
|
213
243
|
width: 5px;
|
|
214
244
|
height: 5px;
|
|
215
245
|
background: #8f9cec;
|
|
216
|
-
border-radius:
|
|
246
|
+
border-radius: 100%;
|
|
217
247
|
z-index: 1;
|
|
218
248
|
}
|
|
219
249
|
|
|
220
250
|
&::after {
|
|
221
251
|
content: '';
|
|
222
252
|
position: absolute;
|
|
223
|
-
left: 32.
|
|
253
|
+
left: 32.9px;
|
|
224
254
|
top: 0 !important;
|
|
225
255
|
width: 1px;
|
|
226
256
|
height: 100%;
|
|
@@ -259,10 +289,6 @@ ul {
|
|
|
259
289
|
box-shadow: 0px 0px 30px 0px transparent;
|
|
260
290
|
|
|
261
291
|
&.rc-menu-item-selected {
|
|
262
|
-
.menu-item-content {
|
|
263
|
-
width: 100%;
|
|
264
|
-
padding-right: 24px;
|
|
265
|
-
}
|
|
266
292
|
.menu-item-label {
|
|
267
293
|
color: #fff;
|
|
268
294
|
font-weight: 500;
|
|
@@ -270,7 +296,6 @@ ul {
|
|
|
270
296
|
align-items: center;
|
|
271
297
|
padding-left: 12px;
|
|
272
298
|
width: 100%;
|
|
273
|
-
padding-right: 24px;
|
|
274
299
|
height: 40px;
|
|
275
300
|
background: rgba(255, 255, 255, 0.05);
|
|
276
301
|
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.05);
|
|
@@ -284,7 +309,7 @@ ul {
|
|
|
284
309
|
}
|
|
285
310
|
|
|
286
311
|
.grand-li {
|
|
287
|
-
background: #
|
|
312
|
+
background: #3568B7;
|
|
288
313
|
position: relative;
|
|
289
314
|
z-index: 9;
|
|
290
315
|
line-height: 52px;
|
|
@@ -305,7 +330,7 @@ ul {
|
|
|
305
330
|
width: 5px;
|
|
306
331
|
height: 5px;
|
|
307
332
|
background: #8f9cec;
|
|
308
|
-
border-radius:
|
|
333
|
+
border-radius: 100%;
|
|
309
334
|
transform: translateY(-50%);
|
|
310
335
|
z-index: 2;
|
|
311
336
|
}
|
|
@@ -363,7 +388,6 @@ ul {
|
|
|
363
388
|
&:hover {
|
|
364
389
|
> .menu-item-content {
|
|
365
390
|
.menu-item-icon,
|
|
366
|
-
.iconfont,
|
|
367
391
|
.menu-item-label {
|
|
368
392
|
color: #fff;
|
|
369
393
|
}
|
|
@@ -372,12 +396,14 @@ ul {
|
|
|
372
396
|
}
|
|
373
397
|
}
|
|
374
398
|
|
|
375
|
-
.menu-collapsed
|
|
399
|
+
.menu-console-collapsed {
|
|
376
400
|
display: flex;
|
|
377
401
|
flex-direction: column;
|
|
378
402
|
align-items: center;
|
|
379
403
|
list-style: none;
|
|
380
404
|
cursor: pointer;
|
|
405
|
+
position: relative;
|
|
406
|
+
z-index: 20;
|
|
381
407
|
|
|
382
408
|
.menu-item-content {
|
|
383
409
|
font-weight: 400;
|
|
@@ -426,13 +452,15 @@ body {
|
|
|
426
452
|
}
|
|
427
453
|
|
|
428
454
|
.close-trigger-console {
|
|
455
|
+
position: relative;
|
|
456
|
+
z-index: 20;
|
|
429
457
|
margin-top: 24px;
|
|
430
458
|
width: 30px;
|
|
431
459
|
height: 30px;
|
|
432
|
-
background:
|
|
460
|
+
background: rgba(255, 255, 255, 0.05);
|
|
433
461
|
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.05);
|
|
434
462
|
border-radius: 4px;
|
|
435
|
-
border: 1px solid rgba(255, 255, 255, 0.
|
|
463
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
436
464
|
backdrop-filter: blur(10px);
|
|
437
465
|
display: flex;
|
|
438
466
|
justify-content: center;
|
|
@@ -441,7 +469,7 @@ body {
|
|
|
441
469
|
|
|
442
470
|
.search-console {
|
|
443
471
|
position: relative;
|
|
444
|
-
z-index:
|
|
472
|
+
z-index: 11;
|
|
445
473
|
height: 40px;
|
|
446
474
|
color: #fff;
|
|
447
475
|
background: #5b6ecf;
|
|
@@ -533,7 +561,21 @@ body {
|
|
|
533
561
|
}
|
|
534
562
|
}
|
|
535
563
|
|
|
564
|
+
.layout-side-mask1-console {
|
|
565
|
+
z-index: 9;
|
|
566
|
+
background: white;
|
|
567
|
+
border: 2px solid #ffffff;
|
|
568
|
+
position: absolute;
|
|
569
|
+
top: 0;
|
|
570
|
+
left: 0;
|
|
571
|
+
width: 100%;
|
|
572
|
+
height: 100%;
|
|
573
|
+
border-radius: 16px;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
|
|
536
577
|
.layout-side-mask2-console {
|
|
578
|
+
z-index: 10;
|
|
537
579
|
background: linear-gradient(227deg, #7856e6 0%, #6a6ed2 0%, #0271c3 100%) !important;
|
|
538
580
|
border: 2px solid #ffffff;
|
|
539
581
|
position: absolute;
|
|
@@ -559,7 +601,8 @@ body {
|
|
|
559
601
|
cursor: pointer;
|
|
560
602
|
height: 30px;
|
|
561
603
|
position: relative;
|
|
562
|
-
z-index:
|
|
604
|
+
z-index: 11;
|
|
605
|
+
|
|
563
606
|
|
|
564
607
|
.logo-sub {
|
|
565
608
|
width: 31px;
|
|
@@ -574,36 +617,6 @@ body {
|
|
|
574
617
|
}
|
|
575
618
|
|
|
576
619
|
.layout-header-console {
|
|
577
|
-
.down {
|
|
578
|
-
transform: rotate(0deg);
|
|
579
|
-
animation: downanimation 0.3s ease-in-out;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
@keyframes downanimation {
|
|
583
|
-
from {
|
|
584
|
-
transform: rotate(180deg);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
to {
|
|
588
|
-
transform: rotate(0deg);
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
//---
|
|
593
|
-
.up {
|
|
594
|
-
transform: rotate(180deg);
|
|
595
|
-
animation: upanimation 0.3s ease-in-out;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
@keyframes upanimation {
|
|
599
|
-
from {
|
|
600
|
-
transform: rotate(0deg);
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
to {
|
|
604
|
-
transform: rotate(180deg);
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
620
|
|
|
608
621
|
z-index: 1;
|
|
609
622
|
height: $header-height;
|
|
@@ -659,6 +672,37 @@ body {
|
|
|
659
672
|
border-radius: 6px;
|
|
660
673
|
cursor: pointer;
|
|
661
674
|
|
|
675
|
+
&-down {
|
|
676
|
+
transform: rotate(0deg);
|
|
677
|
+
animation: downanimation 0.3s ease-in-out;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
@keyframes downanimation {
|
|
681
|
+
from {
|
|
682
|
+
transform: rotate(180deg);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
to {
|
|
686
|
+
transform: rotate(0deg);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
//---
|
|
691
|
+
&-up {
|
|
692
|
+
transform: rotate(180deg);
|
|
693
|
+
animation: upanimation 0.3s ease-in-out;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
@keyframes upanimation {
|
|
697
|
+
from {
|
|
698
|
+
transform: rotate(0deg);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
to {
|
|
702
|
+
transform: rotate(180deg);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
662
706
|
&:hover {
|
|
663
707
|
background: rgba(0, 0, 0, 0.06);
|
|
664
708
|
}
|