浏览代码

fix:修改兼容方式,兼容Form 组件中contentMap中类输入框或下拉选择的所有组件,特殊兼容 InputNumber 组件

huanlirui 1 年之前
父节点
当前提交
ab98ceb85f
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/components/Form/src/Form.vue

+ 7 - 4
src/components/Form/src/Form.vue

@@ -425,11 +425,14 @@ export default defineComponent({
 }
 
 .@{elNamespace}-form--inline {
-  .@{elNamespace}-input {
-    min-width: 189.5px;
+  :deep(.el-form-item__content) {
+    & > :first-child {
+      min-width: 229.5px;
+    }
   }
-  .@{elNamespace}-select {
-    min-width: 189.5px;
+  .@{elNamespace}-input-number {
+    // 229.5px是兼容el-input-number的最小宽度,
+    min-width: 229.5px;
   }
 }
 </style>