优化 form 样式

This commit is contained in:
2betop 2021-08-17 20:48:59 +08:00
parent 8ae7d0bdb4
commit 947372642c
2 changed files with 2 additions and 16 deletions

View File

@ -254,6 +254,7 @@
> .#{$ns}Form-label {
padding-top: var(--Form-label-paddingTop);
margin-bottom: 0;
flex-shrink: 0;
.#{$ns}Form-star {
position: absolute;

View File

@ -312,24 +312,13 @@ addSchemaFilter(function (scheam: Schema, renderer) {
]
};
} else if (item.type) {
let {
xs,
sm,
md,
lg,
columnClassName,
mode,
horizontal,
...rest
} = item;
let {xs, sm, md, lg, columnClassName, ...rest} = item;
item = {
xs,
sm,
md,
lg,
columnClassName,
mode,
horizontal,
body: [rest]
};
}
@ -357,8 +346,6 @@ addSchemaFilter(function (scheam: Schema, renderer) {
height,
style,
columnClassName,
mode,
horizontal,
visible,
visibleOn,
...rest
@ -369,8 +356,6 @@ addSchemaFilter(function (scheam: Schema, renderer) {
height,
style,
columnClassName,
mode,
horizontal,
visible,
visibleOn,
body: [rest]