Browse Source

计算右侧小班滚动的高度

gcz 2 years ago
parent
commit
6644ac3ea5
2 changed files with 4 additions and 2 deletions
  1. 2 0
      src/assets/scss/common.scss
  2. 2 2
      src/views/index.vue

+ 2 - 0
src/assets/scss/common.scss

@@ -136,6 +136,8 @@ body {
             }
         }
         .scroll-board-01{
+            height: calc( 100vh - var(--header-height) - 249px );
+            // height: 60vh;
             box-sizing: border-box;
             padding: 0 15px;
             color: #08eeff;

+ 2 - 2
src/views/index.vue

@@ -193,8 +193,8 @@ export default {
       ],
       scrollBoardKey: Date.now(),
       scrollBoardStyle: {
-        width: '100%',
-        height: '60vh'
+        // width: '100%',
+        // height: '60vh'
       },
       scrollBoardConfig: scrollBoardSchema,
       page1numerical: [