Skip to content

Commit ab98ceb

Browse files
committed
fix:修改兼容方式,兼容Form 组件中contentMap中类输入框或下拉选择的所有组件,特殊兼容 InputNumber 组件
1 parent f44e48d commit ab98ceb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/components/Form/src/Form.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,14 @@ export default defineComponent({
425425
}
426426
427427
.@{elNamespace}-form--inline {
428-
.@{elNamespace}-input {
429-
min-width: 189.5px;
428+
:deep(.el-form-item__content) {
429+
& > :first-child {
430+
min-width: 229.5px;
431+
}
430432
}
431-
.@{elNamespace}-select {
432-
min-width: 189.5px;
433+
.@{elNamespace}-input-number {
434+
// 229.5px是兼容el-input-number的最小宽度,
435+
min-width: 229.5px;
433436
}
434437
}
435438
</style>

0 commit comments

Comments
 (0)