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

研报列表居中样式bug

jwyu 2 жил өмнө
parent
commit
86439a7c5c

+ 15 - 4
src/views/report/List.vue

@@ -252,6 +252,8 @@ const posterParams=computed(()=>{
                     </div>  
                 </div>
             </div>
+            <div class="last-add-item"></div>
+            <div class="last-add-item"></div>
         </div>
         </SelfList>
     </div>
@@ -314,13 +316,22 @@ const posterParams=computed(()=>{
     .list-wrap{
         flex-wrap: wrap;
         justify-content: center;
-        &::after{
-            content:'';
-            display: block;
+        // &::after{
+        //     content:'';
+        //     display: block;
+        //     height:0;
+        //     flex-shrink: 0;
+        //     width: 380px;
+        //     margin-bottom: 20px;
+        //     margin-left: 10px;
+        //     margin-right: 10px;
+        // }
+
+        // 末尾补充的两个元素 为了整体能居中
+        .last-add-item{
             height:0;
             flex-shrink: 0;
             width: 380px;
-            margin-bottom: 20px;
             margin-left: 10px;
             margin-right: 10px;
         }