feat: improve stying

This commit is contained in:
chenos 2021-09-08 15:11:35 +08:00
parent 1229a10df6
commit 1c30baffcf
2 changed files with 56 additions and 33 deletions

View File

@ -98,7 +98,13 @@ const FormMain = (props: any) => {
const content = ( const content = (
<FormProvider form={form}> <FormProvider form={form}>
{schema['x-decorator'] === 'Form' ? ( {schema['x-decorator'] === 'Form' ? (
<SchemaField components={options.components} scope={scope} schema={s} /> <FormLayout layout={'vertical'} {...others}>
<SchemaField
components={options.components}
scope={scope}
schema={s}
/>
</FormLayout>
) : ( ) : (
<FormLayout layout={'vertical'} {...others}> <FormLayout layout={'vertical'} {...others}>
<SchemaField <SchemaField

View File

@ -28,6 +28,17 @@
&.isDragging { &.isDragging {
opacity: .2; opacity: .2;
} }
.ant-formily-item-control-content-component {
min-height: 0 !important;
}
.ant-space {
display: flex !important;
}
.ant-formily-item-label {
min-height: 0 !important;
}
} }
.nb-kanban-drag-overlay { .nb-kanban-drag-overlay {
@ -44,13 +55,18 @@
position: relative; position: relative;
// padding: 0; // padding: 0;
> .nb-block-item { .nb-block-item {
padding: 12px; &:last-child {
min-height: 50px; .ant-formily-item {
}
.nb-grid-block, .ant-formily-item {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
}
}
.nb-grid-block, .ant-formily-item {
margin-bottom: 12px !important;
}
.ant-formily-layout {
&:hover { &:hover {
> .designable-bar { > .designable-bar {
display: block; display: block;
@ -84,6 +100,7 @@
} }
} }
} }
}
} }
.nb-kanban-column-header { .nb-kanban-column-header {