cfel-base-components 2.5.67 → 2.5.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.
package/package.json
CHANGED
|
@@ -6,10 +6,7 @@ ul {
|
|
|
6
6
|
margin: 0;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
background: linear-gradient( 223deg, #F3FBFD 0%, #F6FCFB 30%, #F8FDFA 100%);;
|
|
11
|
-
box-shadow: inset 0px -1px 0px 0px #edeefd;
|
|
12
|
-
}
|
|
9
|
+
|
|
13
10
|
|
|
14
11
|
.ant-popover-inner {
|
|
15
12
|
padding: 8px !important;
|
|
@@ -81,7 +78,7 @@ ul {
|
|
|
81
78
|
position: relative;
|
|
82
79
|
z-index: 11;
|
|
83
80
|
|
|
84
|
-
.menu {
|
|
81
|
+
.menu-cloud {
|
|
85
82
|
padding: 0;
|
|
86
83
|
margin: 0;
|
|
87
84
|
list-style: none;
|
|
@@ -481,16 +478,17 @@ body {
|
|
|
481
478
|
overflow: hidden;
|
|
482
479
|
}
|
|
483
480
|
|
|
484
|
-
.layout-warps {
|
|
481
|
+
.layout-warps-cloud {
|
|
485
482
|
display: flex;
|
|
486
483
|
padding: 12px;
|
|
487
|
-
background
|
|
484
|
+
background: linear-gradient(223deg, #F3FBFD 0%, #e9f7f8 30%, #F8FDFA 100%);
|
|
485
|
+
box-shadow: inset 0px -1px 0px 0px #edeefd;
|
|
488
486
|
|
|
489
487
|
::-webkit-scrollbar {
|
|
490
488
|
display: none;
|
|
491
489
|
}
|
|
492
490
|
|
|
493
|
-
.trigger {
|
|
491
|
+
.trigger-cloud {
|
|
494
492
|
margin-right: 16px;
|
|
495
493
|
width: 30px;
|
|
496
494
|
height: 30px;
|
|
@@ -504,7 +502,7 @@ body {
|
|
|
504
502
|
align-items: center;
|
|
505
503
|
}
|
|
506
504
|
|
|
507
|
-
.close-trigger {
|
|
505
|
+
.close-trigger-cloud {
|
|
508
506
|
position: relative;
|
|
509
507
|
z-index: 10;
|
|
510
508
|
margin-top: 24px;
|
|
@@ -521,7 +519,7 @@ body {
|
|
|
521
519
|
cursor: pointer;
|
|
522
520
|
}
|
|
523
521
|
|
|
524
|
-
.search {
|
|
522
|
+
.search-cloud {
|
|
525
523
|
height: 40px;
|
|
526
524
|
box-shadow:
|
|
527
525
|
inset 0px 2px 1px 0px rgba(0, 0, 0, 0.05),
|
|
@@ -592,7 +590,7 @@ body {
|
|
|
592
590
|
}
|
|
593
591
|
}
|
|
594
592
|
|
|
595
|
-
.search-mobile-
|
|
593
|
+
.search-mobile-cloud {
|
|
596
594
|
width: 40px;
|
|
597
595
|
height: 40px;
|
|
598
596
|
box-shadow:
|
|
@@ -628,7 +626,7 @@ body {
|
|
|
628
626
|
z-index: 10;
|
|
629
627
|
}
|
|
630
628
|
|
|
631
|
-
.layout-side {
|
|
629
|
+
.layout-side-cloud {
|
|
632
630
|
background: transparent !important;
|
|
633
631
|
position: relative;
|
|
634
632
|
height: calc(100vh - 24px);
|
|
@@ -638,7 +636,7 @@ body {
|
|
|
638
636
|
padding-top: 24px;
|
|
639
637
|
overflow: visible;
|
|
640
638
|
|
|
641
|
-
.header-logo {
|
|
639
|
+
.header-logo-cloud {
|
|
642
640
|
padding-left: 16px;
|
|
643
641
|
display: flex;
|
|
644
642
|
justify-content: space-between;
|
|
@@ -659,10 +657,10 @@ body {
|
|
|
659
657
|
}
|
|
660
658
|
}
|
|
661
659
|
|
|
662
|
-
.layout-header {
|
|
660
|
+
.layout-header-cloud {
|
|
663
661
|
z-index: 1;
|
|
664
662
|
height: $header-height;
|
|
665
|
-
background: linear-gradient(223deg, #
|
|
663
|
+
background: linear-gradient(223deg, #faf8ff26 0%, #eefaf5 29%, #ffffff 100%);
|
|
666
664
|
border-radius: 16px;
|
|
667
665
|
border: 1px solid #ffffff;
|
|
668
666
|
position: relative;
|
|
@@ -676,11 +674,11 @@ body {
|
|
|
676
674
|
color: rgba(0, 0, 0, 0.65);
|
|
677
675
|
}
|
|
678
676
|
|
|
679
|
-
.layout-header-fill {
|
|
677
|
+
.layout-header-fill-cloud {
|
|
680
678
|
flex: 1;
|
|
681
679
|
}
|
|
682
680
|
|
|
683
|
-
.layout-header-actions {
|
|
681
|
+
.layout-header-actions-cloud {
|
|
684
682
|
display: flex;
|
|
685
683
|
justify-content: flex-start;
|
|
686
684
|
align-items: center;
|
|
@@ -708,7 +706,7 @@ body {
|
|
|
708
706
|
}
|
|
709
707
|
}
|
|
710
708
|
|
|
711
|
-
.layout-header-user {
|
|
709
|
+
.layout-header-user-cloud {
|
|
712
710
|
height: 48px;
|
|
713
711
|
display: flex;
|
|
714
712
|
font-size: 14px;
|
|
@@ -734,14 +732,14 @@ body {
|
|
|
734
732
|
}
|
|
735
733
|
}
|
|
736
734
|
|
|
737
|
-
.layout-main {
|
|
735
|
+
.layout-main-cloud {
|
|
738
736
|
flex: 1;
|
|
739
737
|
height: 100%;
|
|
740
738
|
padding-left: 12px;
|
|
741
739
|
overflow: auto;
|
|
742
740
|
}
|
|
743
741
|
|
|
744
|
-
.layout-content {
|
|
742
|
+
.layout-content-cloud {
|
|
745
743
|
width: 100%;
|
|
746
744
|
height: calc(100vh - #{$header-height} - 12px - 24px);
|
|
747
745
|
overflow: auto;
|
|
@@ -759,7 +757,7 @@ body {
|
|
|
759
757
|
overflow: hidden;
|
|
760
758
|
}
|
|
761
759
|
|
|
762
|
-
.lists {
|
|
760
|
+
.lists-cloud {
|
|
763
761
|
position: absolute;
|
|
764
762
|
z-index: 1000;
|
|
765
763
|
width: 88%;
|
|
@@ -213,10 +213,10 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
return (
|
|
216
|
-
<Layout className="layout-warps">
|
|
216
|
+
<Layout className="layout-warps-cloud">
|
|
217
217
|
{Array.isArray(menuList) && menuList.length > 0 && (
|
|
218
218
|
<Sider
|
|
219
|
-
className="layout-side"
|
|
219
|
+
className="layout-side-cloud"
|
|
220
220
|
collapsible
|
|
221
221
|
trigger={null}
|
|
222
222
|
collapsed={collapsed}
|
|
@@ -232,7 +232,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
232
232
|
<div className="layout-side-mask-cloud1"></div>
|
|
233
233
|
<div className="layout-side-mask-cloud2"></div>
|
|
234
234
|
|
|
235
|
-
<div className="header-logo" style={{ justifyContent: collapsed ? 'center' : '', paddingLeft: collapsed ? '0' : '' }}>
|
|
235
|
+
<div className="header-logo-cloud" style={{ justifyContent: collapsed ? 'center' : '', paddingLeft: collapsed ? '0' : '' }}>
|
|
236
236
|
<div
|
|
237
237
|
onClick={() => {
|
|
238
238
|
window.open('/home')
|
|
@@ -244,7 +244,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
244
244
|
</div>
|
|
245
245
|
{!collapsed && (
|
|
246
246
|
<div
|
|
247
|
-
className="trigger"
|
|
247
|
+
className="trigger-cloud"
|
|
248
248
|
onClick={() => {
|
|
249
249
|
setCollapsed(true)
|
|
250
250
|
}}
|
|
@@ -257,7 +257,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
257
257
|
{collapsed && (
|
|
258
258
|
<div style={{ width: '100%', display: 'flex', justifyContent: 'center' }}>
|
|
259
259
|
<div
|
|
260
|
-
className="close-trigger"
|
|
260
|
+
className="close-trigger-cloud"
|
|
261
261
|
onClick={() => {
|
|
262
262
|
localStorage.setItem('layout_collapsed', 'false')
|
|
263
263
|
setCollapsed(false)
|
|
@@ -279,7 +279,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
279
279
|
<div className="layout-menu-cloud">
|
|
280
280
|
<RcMenu
|
|
281
281
|
mode={collapsed ? 'vertical' : 'inline'}
|
|
282
|
-
className={`menu${collapsed ? '-collapsed' : ''}`}
|
|
282
|
+
className={`menu-cloud${collapsed ? '-collapsed' : ''}`}
|
|
283
283
|
motion={collapsed ? verticalMotion : inlineMotion}
|
|
284
284
|
openKeys={openKeys}
|
|
285
285
|
onOpenChange={onOpenChange}
|
|
@@ -474,18 +474,18 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
474
474
|
</Sider>
|
|
475
475
|
)}
|
|
476
476
|
|
|
477
|
-
<div className="layout-main">
|
|
477
|
+
<div className="layout-main-cloud">
|
|
478
478
|
{!isHideHeader && (
|
|
479
|
-
<div className="layout-header">
|
|
479
|
+
<div className="layout-header-cloud">
|
|
480
480
|
{appName && (
|
|
481
481
|
<div className="app-name">
|
|
482
482
|
<strong>{appName}</strong>
|
|
483
483
|
</div>
|
|
484
484
|
)}
|
|
485
485
|
|
|
486
|
-
<div className="layout-header-fill" />
|
|
486
|
+
<div className="layout-header-fill-cloud" />
|
|
487
487
|
|
|
488
|
-
<div className="layout-header-actions">
|
|
488
|
+
<div className="layout-header-actions-cloud">
|
|
489
489
|
{actions?.map((item, index) => {
|
|
490
490
|
return (
|
|
491
491
|
<div className="actions-item" key={index}>
|
|
@@ -516,7 +516,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
516
516
|
}
|
|
517
517
|
}}
|
|
518
518
|
>
|
|
519
|
-
<div className="layout-header-user">
|
|
519
|
+
<div className="layout-header-user-cloud">
|
|
520
520
|
<img className="avatar" src={avatar} />
|
|
521
521
|
<div className="name">{name}</div>
|
|
522
522
|
<span
|
|
@@ -530,7 +530,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
|
|
|
530
530
|
</Popover>
|
|
531
531
|
</div>
|
|
532
532
|
)}
|
|
533
|
-
<div className="layout-content">{props.children}</div>
|
|
533
|
+
<div className="layout-content-cloud">{props.children}</div>
|
|
534
534
|
</div>
|
|
535
535
|
</Layout>
|
|
536
536
|
)
|
|
@@ -664,7 +664,7 @@ function Search({ menuList, collapsed, type, umiHistory, setSelectKey, findKeyPa
|
|
|
664
664
|
<>
|
|
665
665
|
{!collapsed && (
|
|
666
666
|
<div className="search-container">
|
|
667
|
-
<div className="search">
|
|
667
|
+
<div className="search-cloud">
|
|
668
668
|
<div className="search-bg-mask">
|
|
669
669
|
<img src="https://cfel-front.oss-cn-hangzhou.aliyuncs.com/logo/base-component/menu-search-bg.png" />
|
|
670
670
|
</div>
|
|
@@ -693,11 +693,11 @@ function Search({ menuList, collapsed, type, umiHistory, setSelectKey, findKeyPa
|
|
|
693
693
|
{isFocused && (
|
|
694
694
|
<>
|
|
695
695
|
{searchTerm ? (
|
|
696
|
-
<List split={false} className="lists" size="small" bordered dataSource={searchResult} renderItem={(item) => <List.Item onClick={() => enter(item)}>{item.label}</List.Item>} />
|
|
696
|
+
<List split={false} className="lists-cloud" size="small" bordered dataSource={searchResult} renderItem={(item) => <List.Item onClick={() => enter(item)}>{item.label}</List.Item>} />
|
|
697
697
|
) : (
|
|
698
698
|
<List
|
|
699
699
|
split={false}
|
|
700
|
-
className="lists"
|
|
700
|
+
className="lists-cloud"
|
|
701
701
|
header="最近访问"
|
|
702
702
|
size="small"
|
|
703
703
|
bordered
|