Browse Source

[Fix 0000] 修复了缩放状态下选择器下拉框定位在表格里偏移的问题

houzekong 3 tháng trước cách đây
mục cha
commit
9a3e0334e1

+ 7 - 0
src/components/Form/src/BasicForm.vue

@@ -452,5 +452,12 @@
         }
       }
     }
+
+    // 使用默认定位的select dropdown内容需要强制定位以消除动态计算位置后再被Adaptive Container变形后造成的位置偏移问题
+    .ant-select-dropdown,
+    .ant-picker-dropdown {
+      left: 0px !important;
+      top: 35px !important;
+    }
   }
 </style>

+ 7 - 0
src/components/Form/src/TableForm.vue

@@ -461,5 +461,12 @@
         }
       }
     }
+
+    // 使用默认定位的select dropdown内容需要强制定位以消除动态计算位置后再被Adaptive Container变形后造成的位置偏移问题
+    .ant-select-dropdown,
+    .ant-picker-dropdown {
+      left: 0px !important;
+      top: 35px !important;
+    }
   }
 </style>