浏览代码

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

houzekong 3 月之前
父节点
当前提交
9a3e0334e1
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 7 0
      src/components/Form/src/BasicForm.vue
  2. 7 0
      src/components/Form/src/TableForm.vue

+ 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>