Explorar o código

feat: 滚动条

daisy %!s(int64=5) %!d(string=hai) anos
pai
achega
ce0bf3a574

+ 2 - 17
src/components/AbstractQuestionCard.vue

@@ -174,7 +174,7 @@
     <el-space direction="vertical">
     <el-space direction="vertical">
     <el-space direction="vertical" :fill="true">
     <el-space direction="vertical" :fill="true">
       <el-checkbox-group v-model="failCheckList">
       <el-checkbox-group v-model="failCheckList">
-        <el-checkbox v-for="(item, index) in failCheckOption" :label="item"/>
+        <el-checkbox v-for="(item, index) in failCheckOption" :label="item" class="fail-check-option"/>
       </el-checkbox-group>
       </el-checkbox-group>
       <el-input v-model="failCheckInput" placeholder="请输入原因"/>
       <el-input v-model="failCheckInput" placeholder="请输入原因"/>
     </el-space>
     </el-space>
@@ -274,21 +274,6 @@
             recoverQuestion(){
             recoverQuestion(){
                 alert("Delete successfully!");
                 alert("Delete successfully!");
             },
             },
-            toMyDate(instant){
-                let date = new Date(instant);
-                let year = date.getFullYear();
-                let month = date.getMonth() + 1;
-                let theDate = date.getDate();
-                let hour = date.getHours();
-                let minute = date.getMinutes();
-                let second = date.getSeconds();
-                if ( month < 10 ) { month = '0' + month; }
-                if ( theDate < 10 ) { theDate = '0' + theDate; }
-                if ( hour < 10 ) { hour = '0' + hour; }
-                if ( minute < 10 ) { minute = '0' + minute; }
-                if ( second < 10 ) { second = '0' + second; }
-                return year +"-"+ month +"-" + theDate + " "+ hour +":"+ minute +":"+ second;
-            },
 
 
           // 题目审核通过
           // 题目审核通过
           checkQuestionSuccess(){
           checkQuestionSuccess(){
@@ -397,7 +382,7 @@
         margin-bottom: 10px;
         margin-bottom: 10px;
     }
     }
 
 
-    label.el-checkbox{
+    .fail-check-option{
       padding: 5px;
       padding: 5px;
       width: 100%;
       width: 100%;
     }
     }

+ 4 - 0
src/components/QuestionCreater.vue

@@ -283,4 +283,8 @@
         margin-bottom: 20px;
         margin-bottom: 20px;
     }
     }
 
 
+    .question-drawer{
+      overflow: auto;
+    }
+
 </style>
 </style>

+ 4 - 1
src/views/Bok/Main/QuestionRepository/index.vue

@@ -185,9 +185,12 @@ export default {
 }
 }
 </script>
 </script>
 
 
-<style scoped>
+<style>
   .el-pagination-body{
   .el-pagination-body{
     margin: 20px auto;
     margin: 20px auto;
   }
   }
 
 
+  .el-drawer{
+    overflow-y: auto;
+  }
 </style>
 </style>