Browse Source

滚动条优化

九山 4 years ago
parent
commit
6e2b1e43da
2 changed files with 2 additions and 0 deletions
  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: {
       //轨道设置