Skip to content

Commit f44e48d

Browse files
committed
fix:修复 element-plus 2.5版本以上,el-form-item inline模式下,select宽度问题
1 parent c8ccaa8 commit f44e48d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/Form/src/Form.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,12 @@ export default defineComponent({
424424
margin-left: 0 !important;
425425
}
426426
427-
.@{elNamespace}-form--inline .@{elNamespace}-input {
428-
width: 245px;
427+
.@{elNamespace}-form--inline {
428+
.@{elNamespace}-input {
429+
min-width: 189.5px;
430+
}
431+
.@{elNamespace}-select {
432+
min-width: 189.5px;
433+
}
429434
}
430435
</style>

0 commit comments

Comments
 (0)