index.vue
568 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<el-scrollbar class="gl-scroll">
<slot></slot>
</el-scrollbar>
</template>
<script>
export default {
name: 'GLScroll'
}
</script>
<style lang="scss">
.gl-scroll {
// flex: 1;
> .el-scrollbar__wrap {
overflow-x: hidden;
margin-bottom: 0 !important;
}
> .el-scrollbar__bar {
z-index: 10;
&.is-vertical {
width: 6px;
}
&.is-horizontal {
height: 6px !important;
left: 0 !important;
}
::v-deep .el-scrollbar__thumb {
background-color: rgba(144, 147, 153, 0.6);
}
}
}
</style>