Browse Source

选择编辑 添加滚动效果

xiebeibei 4 years ago
parent
commit
a537aa9bca
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/components/edit/attr_select.vue

+ 4 - 2
src/components/edit/attr_select.vue

@@ -799,7 +799,7 @@ export default {
         width: 26px !important;
         height: 26px !important;
         border-radius: 2px !important;
-        border: 1px solid #dcdcdc;
+        border: 1px solid #dcdcdc ;
       }
     }
     .row-tit {
@@ -820,6 +820,8 @@ export default {
 
   .grid-content {
      /*margin-top: 12px;*/
+    height: calc(100% - 48px);
+    overflow-y: scroll;
     position: relative;
   }
 
@@ -840,7 +842,7 @@ export default {
   }
 
   .attr-card {
-    width: 250px;
+    width: 243px;
     margin-bottom: 10px;
     white-space: normal;
     box-shadow: 0px 2px 6px 0px rgba(31, 36, 41, 0.05);