Browse Source

fix:修复 element-plus 2.5版本以上,el-form-item inline模式下,select宽度问题

huanlirui 1 year ago
parent
commit
f44e48d08d
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/components/Form/src/Form.vue

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

@@ -424,7 +424,12 @@ export default defineComponent({
   margin-left: 0 !important;
 }
 
-.@{elNamespace}-form--inline .@{elNamespace}-input {
-  width: 245px;
+.@{elNamespace}-form--inline {
+  .@{elNamespace}-input {
+    min-width: 189.5px;
+  }
+  .@{elNamespace}-select {
+    min-width: 189.5px;
+  }
 }
 </style>