fix(scroll): 滚动条样式

This commit is contained in:
sight 2022-04-08 16:16:17 +08:00
parent 3f1399d1e5
commit f4b1234893

View File

@ -238,20 +238,16 @@ export default defineComponent({
overflow: hidden !important; overflow: hidden !important;
} }
.scrollbar-box ::-webkit-scrollbar {
width: 0px !important;
}
.scrollbar-y { .scrollbar-y {
position: relative; position: relative;
height: 100%; height: 100%;
.scroll-wrap { .scroll-wrap {
height: 100%; height: 100%;
overflow-y: scroll; overflow-y: scroll;
scrollbar-color: transparent transparent; scrollbar-width: none; /* firefox */
scrollbar-track-color: transparent; -ms-overflow-style: none;
-ms-scrollbar-track-color: transparent;
} }
.scrollbar-track { .scrollbar-track {
position: absolute; position: absolute;
top: 0; top: 0;
@ -266,12 +262,19 @@ export default defineComponent({
} }
} }
} }
.scrollbar-y ::-webkit-scrollbar{
display: none;
}
// //
.hide.scrollbar-box .scrollbar-track { .hide.scrollbar-box .scrollbar-track {
display: none; display: none;
} }
// //
.hide.scrollbar-box .scrollbar-y { .hide.scrollbar-box .scrollbar-y ::-webkit-scrollbar{
margin: 0; display: block;
}
.hide.scrollbar-box .scrollbar-y .scroll-wrap{
scrollbar-width: auto;
-ms-overflow-style: scrollbar;
} }
</style> </style>