mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
fix: the content is not displayed in the quick add popup (#6123)
This commit is contained in:
parent
f66a48abd0
commit
049b2a542f
@ -14,6 +14,7 @@ import { CreateAction } from '../../../../schema-initializer/components';
|
||||
import { ActionContextProvider, useActionContext } from '../../action';
|
||||
import { useAssociationFieldContext, useInsertSchema } from '../hooks';
|
||||
import schema from '../schema';
|
||||
import { TabsContextProvider } from '../../tabs/context';
|
||||
|
||||
export const CreateRecordAction = observer(
|
||||
(props) => {
|
||||
@ -38,14 +39,16 @@ export const CreateRecordAction = observer(
|
||||
<CreateAction {...props} onClick={(arg) => addbuttonClick(arg)} />
|
||||
<ActionContextProvider value={{ ...ctx, visible: visibleAddNewer, setVisible: setVisibleAddNewer }}>
|
||||
<CollectionProvider_deprecated name={currentCollection} dataSource={currentDataSource}>
|
||||
<RecursionField
|
||||
onlyRenderProperties
|
||||
basePath={field.address}
|
||||
schema={fieldSchema}
|
||||
filterProperties={(s) => {
|
||||
return s['x-component'] === 'AssociationField.AddNewer';
|
||||
}}
|
||||
/>
|
||||
<TabsContextProvider>
|
||||
<RecursionField
|
||||
onlyRenderProperties
|
||||
basePath={field.address}
|
||||
schema={fieldSchema}
|
||||
filterProperties={(s) => {
|
||||
return s['x-component'] === 'AssociationField.AddNewer';
|
||||
}}
|
||||
/>
|
||||
</TabsContextProvider>
|
||||
</CollectionProvider_deprecated>
|
||||
</ActionContextProvider>
|
||||
</CollectionProvider_deprecated>
|
||||
|
Loading…
x
Reference in New Issue
Block a user