fix: the content is not displayed in the quick add popup (#6123)

This commit is contained in:
Zeke Zhang 2025-01-23 11:01:32 +08:00 committed by GitHub
parent f66a48abd0
commit 049b2a542f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,7 @@ import { CreateAction } from '../../../../schema-initializer/components';
import { ActionContextProvider, useActionContext } from '../../action'; import { ActionContextProvider, useActionContext } from '../../action';
import { useAssociationFieldContext, useInsertSchema } from '../hooks'; import { useAssociationFieldContext, useInsertSchema } from '../hooks';
import schema from '../schema'; import schema from '../schema';
import { TabsContextProvider } from '../../tabs/context';
export const CreateRecordAction = observer( export const CreateRecordAction = observer(
(props) => { (props) => {
@ -38,14 +39,16 @@ export const CreateRecordAction = observer(
<CreateAction {...props} onClick={(arg) => addbuttonClick(arg)} /> <CreateAction {...props} onClick={(arg) => addbuttonClick(arg)} />
<ActionContextProvider value={{ ...ctx, visible: visibleAddNewer, setVisible: setVisibleAddNewer }}> <ActionContextProvider value={{ ...ctx, visible: visibleAddNewer, setVisible: setVisibleAddNewer }}>
<CollectionProvider_deprecated name={currentCollection} dataSource={currentDataSource}> <CollectionProvider_deprecated name={currentCollection} dataSource={currentDataSource}>
<RecursionField <TabsContextProvider>
onlyRenderProperties <RecursionField
basePath={field.address} onlyRenderProperties
schema={fieldSchema} basePath={field.address}
filterProperties={(s) => { schema={fieldSchema}
return s['x-component'] === 'AssociationField.AddNewer'; filterProperties={(s) => {
}} return s['x-component'] === 'AssociationField.AddNewer';
/> }}
/>
</TabsContextProvider>
</CollectionProvider_deprecated> </CollectionProvider_deprecated>
</ActionContextProvider> </ActionContextProvider>
</CollectionProvider_deprecated> </CollectionProvider_deprecated>