mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:46:08 +00:00
refactor(plugin-workflow): add card layout for assigning fields (#4642)
This commit is contained in:
parent
ecb56130cf
commit
a6c16cf3db
@ -32,6 +32,7 @@ import {
|
||||
|
||||
import { useFlowContext } from '../FlowContext';
|
||||
import { useWorkflowVariableOptions } from '../variable';
|
||||
import { Card } from 'antd';
|
||||
|
||||
function reduceSchema(s, fn) {
|
||||
fn(s);
|
||||
@ -117,20 +118,22 @@ export function AssignedFieldsFormSchemaConfig(props) {
|
||||
);
|
||||
|
||||
return (
|
||||
<CollectionManagerProvider dataSource={dataSourceName}>
|
||||
<CollectionProvider name={collectionName}>
|
||||
<FormProvider form={form}>
|
||||
<FormLayout layout={'vertical'}>
|
||||
<VariableScopeProvider scope={scope}>
|
||||
<SchemaComponentProvider form={form} designable>
|
||||
<SchemaComponentOptions {...schemaOptions}>
|
||||
<SchemaComponent schema={schema} onChange={onChange} />
|
||||
</SchemaComponentOptions>
|
||||
</SchemaComponentProvider>
|
||||
</VariableScopeProvider>
|
||||
</FormLayout>
|
||||
</FormProvider>
|
||||
</CollectionProvider>
|
||||
</CollectionManagerProvider>
|
||||
<Card>
|
||||
<CollectionManagerProvider dataSource={dataSourceName}>
|
||||
<CollectionProvider name={collectionName}>
|
||||
<FormProvider form={form}>
|
||||
<FormLayout layout={'vertical'}>
|
||||
<VariableScopeProvider scope={scope}>
|
||||
<SchemaComponentProvider form={form} designable>
|
||||
<SchemaComponentOptions {...schemaOptions}>
|
||||
<SchemaComponent schema={schema} onChange={onChange} />
|
||||
</SchemaComponentOptions>
|
||||
</SchemaComponentProvider>
|
||||
</VariableScopeProvider>
|
||||
</FormLayout>
|
||||
</FormProvider>
|
||||
</CollectionProvider>
|
||||
</CollectionManagerProvider>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user