Skip to content

Commit 118a7a4

Browse files
committed
fix(ProForm): 调整组件排版
1 parent 13f2f18 commit 118a7a4

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

packages/components/src/ProForm/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -350,20 +350,20 @@ const Demo = () => {
350350
}
351351
return (
352352
<>
353-
<ProForm
354-
// 表单类型
355-
formType="collapse"
356-
title="基本使用(与uiw/form使用保持一致)"
357-
// 自定义组件
358-
customWidgetsList={{
353+
<ProForm
354+
// 表单类型
355+
formType="collapse"
356+
title="基本使用(与uiw/form使用保持一致)"
357+
// 自定义组件
358+
customWidgetsList={{
359359
slider: Slider,
360360
}}
361-
// 是否展示uiw/form提交按钮
362-
showSaveButton
363-
// 是否展示uiw/form重置按钮
364-
showResetButton
365-
// 提交后验证
366-
onSubmit={(initial, current) => {
361+
// 是否展示uiw/form提交按钮
362+
showSaveButton
363+
// 是否展示uiw/form重置按钮
364+
showResetButton
365+
// 提交后验证
366+
onSubmit={(initial, current) => {
367367
const errorObj = {};
368368
if (!current?.input) {
369369
errorObj.input = 'input不能为空';
@@ -377,7 +377,7 @@ const Demo = () => {
377377
setState(current)
378378
// 调用请求接口
379379
}}
380-
formDatas={[
380+
formDatas={[
381381
{
382382
label: 'input',
383383
key: 'input',

packages/components/src/ProForm/style/form-item.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
right: 0;
9090
top: 7px;
9191
}
92+
.uiw-admin-proform-horizontal .w-form-item .w-form-row > div {
93+
width: 100%;
94+
}
9295
.uiw-admin-proform-horizontal .w-form-item .w-form-help {
9396
position: absolute;
9497
left: 134px;

0 commit comments

Comments
 (0)