@lambo-design/pro-layout 1.0.0-beta.475 → 1.0.0-beta.477
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 +3 -3
- package/src/index.vue +71 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/pro-layout",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.477",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/
|
|
14
|
-
"@lambo-design/
|
|
13
|
+
"@lambo-design/core": "^4.7.1-beta.184",
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.385"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"release-pro-layout": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
package/src/index.vue
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<i-layout
|
|
2
|
+
<i-layout
|
|
3
|
+
class="pro-layout"
|
|
4
|
+
:class="[layoutClass, { 'show-sider-scrollbar': systemInfo.showSiderScrollbar === '1' }]"
|
|
5
|
+
>
|
|
3
6
|
<i-header class="pro-layout-header" :style="systemInfo.headBackground ? headBackgroundStyle : ''">
|
|
4
7
|
<LamboProLayoutHeader :is-home="isHome" :is-show-left-menu="isShowLeftMenu" ref="header">
|
|
5
8
|
<template slot = "pro-layout-trigger">
|
|
@@ -60,7 +63,6 @@
|
|
|
60
63
|
></div>
|
|
61
64
|
</i-layout>
|
|
62
65
|
</template>
|
|
63
|
-
|
|
64
66
|
<script>
|
|
65
67
|
import LamboProLayoutHeader from './components/pro-layout-header'
|
|
66
68
|
import LamboProLayoutSider from './components/pro-layout-sider'
|
|
@@ -98,7 +100,8 @@ export default {
|
|
|
98
100
|
menuScaling:'1',
|
|
99
101
|
headBackground:'',
|
|
100
102
|
menuLogo: '1',
|
|
101
|
-
titleShow:'wrap'
|
|
103
|
+
titleShow:'wrap',
|
|
104
|
+
showSiderScrollbar: '0' //'1' 显示滚动条,'0' 隐藏滚动条
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
},
|
|
@@ -454,7 +457,7 @@ export default {
|
|
|
454
457
|
top: 0;
|
|
455
458
|
width: 100vw;
|
|
456
459
|
height: 100vh;
|
|
457
|
-
z-index: 999999;
|
|
460
|
+
z-index: 999999;
|
|
458
461
|
background: transparent;
|
|
459
462
|
cursor: col-resize;
|
|
460
463
|
}
|
|
@@ -473,9 +476,6 @@ export default {
|
|
|
473
476
|
background: #ddd;
|
|
474
477
|
}
|
|
475
478
|
|
|
476
|
-
.sider-resize-bar:hover {
|
|
477
|
-
background: #ddd;
|
|
478
|
-
}
|
|
479
479
|
.pro-layout {
|
|
480
480
|
height: 100vh;
|
|
481
481
|
width: 100%;
|
|
@@ -492,10 +492,15 @@ export default {
|
|
|
492
492
|
overflow-y: scroll;
|
|
493
493
|
margin-right: -18px;
|
|
494
494
|
padding-right: 17px;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
495
|
+
|
|
496
|
+
&::-webkit-scrollbar {
|
|
497
|
+
/* 隐藏默认的滚动条 */
|
|
498
|
+
display: none;
|
|
499
|
+
}
|
|
500
|
+
// Firefox 隐藏
|
|
501
|
+
scrollbar-width: none;
|
|
502
|
+
// IE/Edge 隐藏
|
|
503
|
+
-ms-overflow-style: none;
|
|
499
504
|
}
|
|
500
505
|
}
|
|
501
506
|
.pro-layout-content {
|
|
@@ -523,7 +528,6 @@ export default {
|
|
|
523
528
|
.pro-layout-logo-wrapper {
|
|
524
529
|
.logo {
|
|
525
530
|
height: 40px;
|
|
526
|
-
//margin-top: 14px;
|
|
527
531
|
}
|
|
528
532
|
.divider {
|
|
529
533
|
height: 26px;
|
|
@@ -545,10 +549,11 @@ export default {
|
|
|
545
549
|
.ivu-layout-sider-children {
|
|
546
550
|
height: calc(100vh - 50px);
|
|
547
551
|
padding-right: 17px;
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
+
|
|
553
|
+
&::-webkit-scrollbar {
|
|
554
|
+
/* 隐藏默认的滚动条 */
|
|
555
|
+
display: none;
|
|
556
|
+
}
|
|
552
557
|
}
|
|
553
558
|
}
|
|
554
559
|
.pro-layout-content {
|
|
@@ -560,5 +565,55 @@ export default {
|
|
|
560
565
|
}
|
|
561
566
|
}
|
|
562
567
|
}
|
|
568
|
+
|
|
569
|
+
// 通过 systemInfo 控制显示滚动条
|
|
570
|
+
&.show-sider-scrollbar {
|
|
571
|
+
.pro-layout-sider {
|
|
572
|
+
.ivu-layout-sider-children {
|
|
573
|
+
// 移除隐藏的 hack
|
|
574
|
+
margin-right: 0;
|
|
575
|
+
padding-right: 0;
|
|
576
|
+
overflow-y: auto;
|
|
577
|
+
|
|
578
|
+
&::-webkit-scrollbar {
|
|
579
|
+
display: block;
|
|
580
|
+
width: 6px;
|
|
581
|
+
height: 6px;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
&::-webkit-scrollbar-track {
|
|
585
|
+
background: transparent;
|
|
586
|
+
border-radius: 3px;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
&::-webkit-scrollbar-thumb {
|
|
590
|
+
background: #c1c1c1;
|
|
591
|
+
border-radius: 3px;
|
|
592
|
+
transition: background 0.2s;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
596
|
+
background: #a8a8a8;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
// Firefox 显示
|
|
600
|
+
scrollbar-width: auto;
|
|
601
|
+
scrollbar-color: #c1c1c1 transparent;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
&.small {
|
|
606
|
+
.pro-layout-sider {
|
|
607
|
+
.ivu-layout-sider-children {
|
|
608
|
+
padding-right: 0;
|
|
609
|
+
|
|
610
|
+
&::-webkit-scrollbar {
|
|
611
|
+
display: block;
|
|
612
|
+
width: 6px;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
563
618
|
}
|
|
564
619
|
</style>
|