Selaa lähdekoodia

修改原系统改变样式后无法滚动的问题

yuhan 2 kuukautta sitten
vanhempi
commit
7ac537ef4f

+ 7 - 0
src/assets/less/interLock.css

@@ -133,6 +133,11 @@
   overflow: hidden;
   /** 系统自带的main */
 }
+.iotmenu-content-container .iotmenu-content-layout .main,
+.iotmenu-modal-box .iotmenu-content-layout .main {
+  height: 100%;
+  overflow: hidden;
+}
 .iotmenu-content-container .iotmenu-content-layout .iotmenu-content-header,
 .iotmenu-modal-box .iotmenu-content-layout .iotmenu-content-header {
   width: 160px;
@@ -326,6 +331,8 @@
 .iotmenu-content-container .ant-card,
 .iotmenu-modal-box .ant-card {
   background: #FAFAFA;
+  height: 100%;
+  overflow: auto;
 }
 .iotmenu-content-container .ant-card .ant-card-body,
 .iotmenu-modal-box .ant-card .ant-card-body {

+ 6 - 4
src/assets/less/interLock.less

@@ -98,10 +98,10 @@
     height: 100%;
     overflow: hidden;
     /** 系统自带的main */
-    // .main{
-    //   height: 100%;
-    //   overflow: hidden;
-    // }
+    .main{
+      height: 100%;
+      overflow: hidden;
+    }
     // .iotmenu-content-page{
     //   height: 100%;
     //   overflow: hidden;
@@ -301,6 +301,8 @@
   }
   .ant-card{
     background: @iotTpmContentBg;
+    height: 100%;
+    overflow: auto;
     .ant-card-body{
       padding: 0 24px;
     }

+ 1 - 1
src/components/module_interLock/UEquipmentTree/UEquipmentTreeDrag.vue

@@ -355,7 +355,7 @@
   .right-content{
     width: calc(100% - 301px);
     height: 100%;
-    overflow: auto;
+    overflow: hidden;
   }
   /** 样式设置结束 */