Revert "fix(popup): fix the issue where the second layer popup cannot be opened"

This reverts commit 71e9a43f36.
This commit is contained in:
Zeke Zhang 2024-11-15 04:31:42 +08:00
parent 71e9a43f36
commit 20f64c7d8a

View File

@ -7,9 +7,10 @@
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import { IRecursionFieldProps, ISchemaFieldProps, RecursionField, Schema } from '@formily/react';
import { IRecursionFieldProps, ISchemaFieldProps, Schema } from '@formily/react';
import { useUpdate } from 'ahooks';
import React, { memo, useContext, useMemo } from 'react';
import { NocoBaseRecursionField } from '../../formily/NocoBaseRecursionField';
import { SchemaComponentContext } from '../context';
import { SchemaComponentOptions } from './SchemaComponentOptions';
@ -67,7 +68,7 @@ const RecursionSchemaComponent = memo((props: ISchemaFieldProps & SchemaComponen
return (
<SchemaComponentContext.Provider value={value}>
<SchemaComponentOptions inherit components={components} scope={scope}>
<RecursionField {...others} schema={schema} />
<NocoBaseRecursionField {...others} schema={schema} isUseFormilyField />
</SchemaComponentOptions>
</SchemaComponentContext.Provider>
);