diff --git a/package/component/src/component/scroll/index.less b/package/component/src/component/scroll/index.less index 62cb2a55..892a0d75 100644 --- a/package/component/src/component/scroll/index.less +++ b/package/component/src/component/scroll/index.less @@ -1,44 +1,34 @@ -.scrollbar-box { +.layui-scroll { height: 100%; overflow: hidden !important; } -.scrollbar-y { +.layui-scroll-y { position: relative; height: 100%; - .scroll-wrap { + + .layui-scroll-wrap { height: 100%; overflow-y: scroll; - scrollbar-width: none; /* firefox */ + scrollbar-width: none; -ms-overflow-style: none; } - .scrollbar-track { + .layui-scroll-track { position: absolute; top: 0; right: 0; bottom: 0; border-radius: 8px; z-index: 20; - .scrollbar-thumb { + .layui-scroll-thumb { margin: 0 auto; border-radius: 6px; cursor: default; } } } -.scrollbar-y ::-webkit-scrollbar { + +.layui-scroll-y ::-webkit-scrollbar { display: none; -} -//移动端隐藏自定义滚动条 -.hide.scrollbar-box .scrollbar-track { - display: none; -} -//移动端显示原生滑块 -.hide.scrollbar-box .scrollbar-y ::-webkit-scrollbar { - display: block; -} -.hide.scrollbar-box .scrollbar-y .scroll-wrap { - scrollbar-width: auto; - -ms-overflow-style: scrollbar; -} +} \ No newline at end of file diff --git a/package/component/src/component/scroll/index.vue b/package/component/src/component/scroll/index.vue index 278fb2a4..dc51e75a 100644 --- a/package/component/src/component/scroll/index.vue +++ b/package/component/src/component/scroll/index.vue @@ -1,16 +1,16 @@ - + +