Эх сурвалжийг харах

部分页面滑动逻辑优化

JutarryWu 4 сар өмнө
parent
commit
3606f3b1b4

+ 3 - 10
src/views/TaskInTestPlan.vue

@@ -1,13 +1,6 @@
 <template>
-  <div class="wrap">
-    <div style="margin-top: 20px">
-      <!-- <el-tabs v-model="type" @tab-click="changeType">
-        <el-tab-pane label="进行中" name="0"></el-tab-pane>
-        <el-tab-pane label="已完成" name="1"></el-tab-pane>
-      </el-tabs> -->
-    </div>
-    <!-- <div v-show="mainTableVisible"> -->
-    <div>
+  <div class="wrap" style="height: calc(100vh - 340px); padding: 20px 0">
+    <div style="height: 100%; overflow-x: hidden; overflow-y: auto; padding-right: 18px;">
       <div class="cardList">
         <ul>
           <li
@@ -65,7 +58,7 @@
                   >{{ item.testNum }}人测试过</span
                 > -->
               </p>
-              <div class="content">{{ dealLongStr(item.description) }}</div>
+              <div class="content" style="width: 100%">{{ dealLongStr(item.description) }}</div>
               <div class="link">
                 <el-button
                   round