Explorar o código

滚动条优化

九山 %!s(int64=4) %!d(string=hai) anos
pai
achega
6e2b1e43da
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      src/assets/css/main.scss
  2. 1 0
      src/main.js

+ 1 - 0
src/assets/css/main.scss

@@ -7,6 +7,7 @@ $top-height: 100px;
     }
   }
   >.main{
+    width: 100%;
     height: calc(100vh - #{$top-height});
   }
 }

+ 1 - 0
src/main.js

@@ -22,6 +22,7 @@ Vue.use(vuescroll, {
   ops: {
     scrollPanel: {
       easing: "easeInOutQuad",
+      scrollingX: false, // 横向滚动条关闭
     },
     rail: {
       //轨道设置